...

/

The Select Method

The Select Method

Learn how to transform a collection with Select.

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 ...