How should I make a list which can accommodate this range(in the code) since it is showing out of memory exception?
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
var l1 = Enumerable.Range(999900000, 1000000000).ToList();
l1.ForEach(f => Console.WriteLine(f));
}
}
}