예제 #1
0
        static void Main(string[] args)
        {
            Student S1 = new Student("Baranovskaya", "Marina", "Vitalievna", new DateTime(2002, 11, 09), 1523854, "FIT", 2, 11);

            S1.GetInfo();


            Student S2 = new Student("Belaya", "Anna", "Igorevna", new DateTime(2001, 12, 03), 5686001, "FIT", 2, 11);

            S2.GetInfo();


            Student S3 = new Student("Briksa", "Olga", "Alexandrovna", new DateTime(2002, 06, 06), 5478239, "FIT", 2, 11);

            S3.GetInfo();


            Student S4 = new Student("Bytimova", "Karina", "Sergeevna", new DateTime(2001, 11, 01), 1012899, "FIT", 2, 11);

            S4.GetInfo();


            Student S5 = new Student("Kireenko", "Nadezhda", "Ivanovna", new DateTime(2002, 07, 16), 5202560, "FIT", 2, 11);

            S5.GetInfo();


            Student S6 = new Student("Kamenko", "Pavel", "Nikolaevich", new DateTime(1999, 09, 26), 1313072, "FIT", 2, 15);

            S6.GetInfo();
            Console.WriteLine();

            Student S7 = new Student("Sattarova", "Alexandra", "Petrovna", new DateTime(1999, 05, 10), 7853098, "FIT", 2, 15);

            S7.GetInfo();
            Console.WriteLine();

            Student S8 = new Student("Shpakova", "Valeria", "Dmitrievna", new DateTime(1999, 05, 12), 1231245, "FIT", 2, 13);

            S8.GetInfo();
            Console.WriteLine();

            Student S9 = new Student("Areshko", "Arseniy", "Andreevich", new DateTime(1999, 05, 25), 6214329, "FIT", 2, 13);

            S9.GetInfo();
            Console.WriteLine();

            Student S10 = new Student("Ivantsova", "Valentina", "Jurievna", new DateTime(2002, 07, 18), 7826726, "FIT", 2, 11);

            S10.GetInfo();
            Console.WriteLine();

            Student S11 = new Student("Mazurina", "Angelina", "Lvovna", new DateTime(2001, 04, 17), 1452147, "FIT", 2, 11);

            S11.GetInfo();
            Console.WriteLine();

            Student S12 = new Student("Metlitskaya", "Alexandra", "Dmitrievna", new DateTime(1999, 11, 26), 6214329, "FIT", 2, 13);

            S12.GetInfo();
            Console.WriteLine();

            Student S13 = new Student("Budnyak", "Eduard", "Stanislavovich", new DateTime(1998, 10, 30), 6236222, "FIT", 2, 15);

            S13.GetInfo();
            Console.WriteLine();

            Student[] ListOfStudents = new Student[] { S1, S2, S3, S4, S5, S6, S7, S8, S9, S10, S11, S12, S13 };


            Console.WriteLine("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
            Console.WriteLine("The list of students from chosen faculty");
            Student.SelectFaculty(ref ListOfStudents);

            Console.WriteLine("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
            Console.WriteLine("The list of students from chosen group");
            Student.SelectGroup(ref ListOfStudents);

            var Person = new { Name = "Alisa", phoneNumber = 1234567 }; //анонимный тип

            Console.WriteLine(Person.Name);

            Console.ReadKey();
        }