Page 2 : 11
Object-oriented Programming in C#
An Introduction to LINQ
Origin and Rationale
LINQ Concepts
Map, filter, and reduce
Basic LINQ Examples
An overview of some LINQ Query Operators
LINQ Query Operations vs List<T> methods.
How a LINQ Query Operation works
Deferred Execution
The technical basis of LINQ
Query Syntax versus Method Syntax
A Final Example: Sieve of Eratosthenes.
LINQ Concepts
Sequence
A collection - of type
IEnumerable<T>
- that can be traversed by use of an iterator
IQueryable<T>
is a sub-interface of
IEnumerable<T>
.
Data source
The sequence considered the original input to a query
Query
An expression which (lazily) extracts information from a sequence
Query Operator
A pure function, defined on Sequence types, and used in a query
LINQ Provider
An implementation of a number of query operators on a given kind of data source
Examples: LINQ to Objects and LINQ to SQL