When I run this code, the number at the top of the output window is 99701. Why don\'t I get to see all the way through 1? I actually see all the numbers getting outputted, b
From .Net Framework 2.0 and beyond, you can change the buffer height from within your own program with Console.BufferHeight:
Console.BufferHeight = Int16.MaxValue - 1; // ***** Alters the BufferHeight *****
List myList = new List();
for (int x = 0; x < 100000; x++)
myList.Add(x.ToString());
foreach (string s in myList) {
Console.WriteLine(s);
}
The maximum height is Int16.MaxValue - 1.