All lessons

Power Tools: LINQ & Lambdas

10 min · C#

Write inline functions with lambdas and transform lists with LINQ's Select and Where.

C# · Power Tools: LINQ & Lambdas0/5 cleared

Enemy 1 of 5

A lambda is a compact, unnamed function: parameters => expression. Assign it to a Func<TInput, TOutput> and call it like any method.

You
Syntax Skeleton

Loading editor...

Ln 1, Col 1Spaces: 4
Sign up to fightTarget output: 36