static void Main(string[] args) { Stack mylist = new Stack(); for (int i = 0; i < 6; i++) mylist.Add(i); mylist.Print(); Console.ReadKey(); }