Skip to main content
C# / .NET Code Completion Medium +20 XP

LINQ Select

Complete the LINQ projection.

C# / .NETFill in the blank
var names = users.___(u => u.Name).ToList();

Type the missing code

Show answer and explanation

Answer: Select

Select() is LINQ's projection method, equivalent to map() in other languages. It transforms each element.

Hint: Which LINQ method transforms each element?

What this challenge tests

Code Completion in C# / .NET: linq, projection.

Related challenges