RosettaCodeData/Task/Multiple-distinct-objects/C-sharp/multiple-distinct-objects.cs
2023-07-01 13:44:08 -04:00

5 lines
141 B
C#

using System;
using System.Linq;
using System.Collections.Generic;
List<Foo> foos = Enumerable.Range(1, n).Select(x => new Foo()).ToList();