public static void ShowCollection(TestCollection col) { Console.WriteLine("Collection: "); foreach (Shop item in col.collection_1TKey) { item.ShowInfo(); } Console.WriteLine(); }
public static void ShowCollection(TestCollection col) { Console.WriteLine("Collection: "); foreach (var item in col.collection_1TKey) { item.ToString(); } Console.WriteLine(); }
public static void Main(string[] args) { col = new TestCollection(20); ShowCollection(col); Select("Gun"); Count("Gun"); Sum("Gun"); GroupBy(5000); MaxMin(); Console.ReadLine(); }
public static void Main(string[] args) { col = new TestCollection(10); ShowCollection(col); Select(10); Count(10); Except(10, 10); Aggregate(); GroupBy(10); Console.ReadLine(); }