C#workingdotnet
LINQ essentials
Query any sequence with the same handful of operators.
Where, Select, OrderBy, GroupBy — composable, lazy, and the same whether the source is a list, a file, or a database.
Filter, project, order
C#intro0ms
10, 14, 16, 18count over 3: 4sum: 35
Reference · output compiled offline, not runnable in-browser
The chained Where/OrderBy/Select yields the four sorted, doubled values 10, 14, 16, 18, while Count and Sum query the original nums — showing each operator works off its own source and only runs when enumerated.