I know this should be easy to do, but suppose, in my C# application, I have a IEnumerable<string>
and I need to create a larger enumerable with null
s for the extra values.
So, simply for example's sake, suppose my enumerable has 12 elements and I need to create a final list of 24 elements (therefore the final 12 being nulls). I know I could program it using a for loop, but there has to be an easy way to do this using Linq and I'm just not sure which method to use.
Thanks!!