juniorLINQ
What is Select in LINQ?
Updated May 16, 2026
Short answer
Select is used for projecting data into a new form.
Deep explanation
Select transforms each element in a sequence into a new structure, often shaping data into DTOs or anonymous objects.
Real-world example
Extracting only usernames for display in UI.
Common mistakes
- Using Select when filtering is needed instead of Where.
Follow-up questions
- What is projection?
- Can Select return anonymous types?