How to use LINQ Select in C# (projection examples)
The LINQ Select() method projects each element of a sequence into a new form. It transforms (maps) every item in a collection and returns a new IEnumerable<T> with the results.
Select() uses deferred execution. It doesn't run until you iterate the result or call .ToList(), .ToArray(), etc.
Unlike Where(), which filters, Select() always returns the same number of elements as the source.
On this page
Basic Projection
Select a Single Property
Select into an Anonymous Type
Select into a New Type (DTO Pattern)
Select with Index
SelectMany: Flatten Nested Collections
Use SelectMany() when each element contains a nested collection and you want a flat result.
Method Syntax vs Query Syntax
Chaining Select with Other LINQ Methods
Select vs SelectMany: Quick Comparison
Select | SelectMany | |
|---|---|---|
| Input | IEnumerable<T> | IEnumerable<IEnumerable<T>> |
| Output | IEnumerable<TResult> | IEnumerable<TResult> (flat) |
| Shape | 1-to-1 mapping | 1-to-many (flatten) |
| Use case | Transform each item | Unpack nested collections |
Take It Further

The most comprehensive book covering C# 12 and .NET 8 from scratch to production.
C# 12 and .NET 8: Modern Cross-Platform Development · Mark J. Price
Get it on Amazon →As an Amazon Associate I earn from qualifying purchases.
Related Articles
Filter a collection in C# with LINQ Where() by passing a predicate function. Uses deferred execution and returns only elements satisfying the condition.
Sort a C# list with Sort() for in-place modification, or LINQ OrderBy() for a new sorted sequence that leaves the original list unchanged.
Remove duplicates from a C# list using LINQ Distinct() or by converting to HashSet<T>, which automatically stores only unique element values.