C# 14 · Collections and LINQ
Generate numbers
Produce a sequence of integers.
var numbers = Enumerable.Range(1, 5).Select(n => n * n);
C# 14 · Collections and LINQ
Produce a sequence of integers.
var numbers = Enumerable.Range(1, 5).Select(n => n * n);
Was this page helpful?