List
CollectionIn this chapter you’ll:
Learn basic LINQ concepts.
Query an array using a range variable and the from
, where
and select
clauses.
Iterate over LINQ query results.
Sort a LINQ query’s results with the orderby
clause.
Learn basic interface concepts and how the IEnumerable<T>
interface enables a foreach
to iterate over an array or collection’s elements.
Learn basic .NET collections concepts.
Become familiar with commonly used methods of generic class List
.
Create and use a generic List
collection.
Query a generic List
collection using LINQ.
Declare multiple range variables in a LINQ query with the let
clause.
Understand how deferred execution helps make LINQ queries reusable.