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

6 lines
141 B
C#
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
using System;
using System.Linq;
using System.Collections.Generic;
List<Foo> foos = Enumerable.Range(1, n).Select(x => new Foo()).ToList();