I may only be asking this because I’ve blinded myself to something brilliantly obvious but,
I’m looking for something like this…
IEnumerable<Foo> fooSeq = Enumerable.Generate(()=> new Foo(), 5);
which would make fooSeq a sequence of 5 new Foo instances.
Can’t seem to find it though.
Not sure what exactly you are trying to do but if you are trying to generate 5 Foo instances, this will work