static void Main(string[] args) { Student student = new Student(); student.Name = "Ilya"; ArrayList list = new ArrayList() { 1, 2, 3, 4, 5 }; list.Add("string"); list.Add(student.name); list.RemoveAt(0); foreach (object o in list) { Console.WriteLine(o); } Console.WriteLine("Колличество элементов: " + list.Count); if (list.Contains("string") == true) { Console.WriteLine("Присутствует Индекс: " + list.IndexOf("string")); } /////////////////////////////////////////////////////////////////////////// Collect <float> collect = new Collect <float>(); collect.AddToList(1.32f); collect.AddToList(2.23f); collect.AddToList(3.33f); collect.WriteList(); for (int i = 0; i < collect.first.Count; i++) { collect.AddToStack(collect.first[i]); } collect.DeleteList(0, 1); collect.WriteList(); collect.WriteStack(); collect.poiskSteck(2.23f); ///////////////////////////////////////////////////////////////////////////// Polz <Description> polz = new Polz <Description>(); Description one = new Description("Ball", 2); Description two = new Description("Crossovki", 1); polz.AddToList(one); polz.AddToList(two); polz.WriteList(); for (int i = 0; i < polz.first.Count; i++) { polz.AddToStack(polz.first[i]); } polz.DeleteList(0, 1); polz.WriteList(); polz.WriteStack(); polz.poiskSteck(two); ////////////////////////////////////////////////////////////////////////////// var data = new ObservableCollection <Description>(); data.CollectionChanged += Data_CollectionChanged; data.Add(one); data.Add(two); data.Remove(one); Console.ReadLine(); }