Beispiel #1
0
        static void Main(string[] args)
        {
            int x;
            Person p;

            //x = x + 1;
            p = new Person(22, "Ibragim");

            p.phone = "77-18-03sfgasdflkgjasd;lkgjasdkl;g";
            p.navbatKuni = Day.Wed;

            int q = (int)p.navbatKuni;
            int a = p.Age;
            p.Age = 90;

            Save(p);
            p.Save();

            ArrayList list = new ArrayList();

            while (true)
            {
                string name = Input.GetStr("Enter the name:");

                if (string.IsNullOrWhiteSpace(name)) break;

                int age = Input.GetInt("Enter the age:");

                if (age == int.MinValue) break;

                var person = new Person(age, name);
                list.Add(person);
            }

            Print(list);
        }
Beispiel #2
0
 static void Save(Person p, int r)
 {
     //Console.WriteLine(p.name);
 }