C# 14 · Collections and LINQ

Generate numbers

Produce a sequence of integers.

var numbers = Enumerable.Range(1, 5).Select(n => n * n);

Official C# 14 documentation

More collections and linq commands

All collections and linq commands · C# 14 cheatsheet

Was this page helpful?