Пример #1
0
        static void Main(string[] args)
        {
            Console.WriteLine("Первое задание");
            SuperList <string> sl = new SuperList <string>();

            sl.Push("first");
            if (sl.Search("first") == "first")
            {
                Console.WriteLine("Значение first содержится");
            }
            sl.Search("second");
            Console.WriteLine();


            Console.WriteLine("Второе задание");
            string[] s = { "Osipovichi", "Obshchaga", "BSTU" };
            var      j = s.Where(i => i[0] == 'B' && i.Length == 4);

            foreach (string z in j)
            {
                Console.WriteLine(z);
            }
            Console.WriteLine();


            Console.WriteLine("Третье задание");
            Fan   x = new Fan();
            Fan   y = new Fan();
            Match m = new Match();

            m.goal += (Fan a, Fan b) =>
            {
                a.Goal();
                b.Goal();
            };
            m.Goal(x, y);
        }