The Select Method
Learn how to transform a collection with Select.
We'll cover the following
So far, we have seen only one LINQ method, the Where
method. LINQ has more methods available. Let’s look at some other common LINQ methods.
How to transform a collection
With the Select
method, we can transform every element of a collection. It applies a transformation, or mapping function, to every element of the input collection.
For example, let’s find the names of only our favorite movies.
Get hands-on with 1400+ tech skills courses.