コード例 #1
0
        public static void task4()
        {
            List <Aeroflot> aeroflots = new List <Aeroflot>()
            {
                new Aeroflot("C", 22, new[] { 1, 2, 3, 4, 5, 6, 7 }),
                new Aeroflot("D", 12, new[] { 1, 2, 3, 4, 5, 6, 7 }),
                new Aeroflot("A", 7, new[] { 1, 2, 3, 4, 5, 6, 7 })
            };

            Aeroflot.Write("/Users/andriypyzh/RiderProjects/Exam/ConsoleApp5/file.txt", aeroflots);

            Task4 task = new Task4();

            task.show();
        }
コード例 #2
0
ファイル: Program.cs プロジェクト: Vladik750/Praktyka
        public static void task4()
        {
            List <Country> countries = new List <Country>()
            {
                new Country("C", 22, 1000),
                new Country("D", 12, 5000),
                new Country("A", 7, 700)
            };

            Country.Write("/Users/andriypyzh/RiderProjects/Exam/ConsoleApp5/file.txt", countries);

            Task4 task = new Task4();

            task.show();
        }