RosettaCodeData/Task/Multiple-distinct-objects/C-sharp/multiple-distinct-objects.cs

6 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();