C# 14 · Collections and LINQ

Filter and transform

LINQ methods work on any sequence. Nothing runs until you enumerate the result.

var names = users.Where(u => u.Age >= 18).Select(u => u.Name).ToList();

Official C# 14 documentation

More collections and linq commands

All collections and linq commands · C# 14 cheatsheet

Was this page helpful?