예제 #1
0
        static void Main(string[] args)
        {
            Practice.Lb8_P2_3();

            Lesson.EnumExample();

            //Fruits blabla = (Fruits)4;

            var numbers = new [] { 1, 4, 2, 7, 8 };

            SortUn <int>(numbers, new IntComparer());

            var nbs = new Neighbor[]
            {
                new Neighbor {
                    flatNumber = 5, name = "Olga"
                },
                new Neighbor {
                    flatNumber = 8, name = "Vika"
                },
                new Neighbor {
                    flatNumber = 3, name = "Lena"
                },
            };

            SortUn <Neighbor>(nbs, new NeibourComparer());

            Console.ReadLine();
        }
        static void Main(string[] args)
        {
            Practice.Lb8_P2_3();

            Lesson.EnumExample();

            Console.ReadLine();
        }
예제 #3
0
파일: Program.cs 프로젝트: AlesiaV/PVT-HW1
        static void Main(string[] args)
        {
            Practice.Lb8_P1_3();
            Practice.Lb8_P2_3();


            //Lesson.EnumExample();
            //Lesson.StructExample2();

            Console.ReadLine();
        }