Example #1
0
        static void Main(string[] args)
        {
            Person A = new Person() {Name = "Linda", Age = 26};

            Console.WriteLine(A.PrintOut());

            /*foreach (var person in aPersonList)
            {
                Console.WriteLine(person.PrintOut());
            }
            Console.WriteLine();
            aPersonList.OrderBy(p => p.Age);

            foreach (var person in aPersonList.OrderBy(p => p.Age))
            {
                Console.WriteLine(person.PrintOut());
            }*/

            Console.ReadKey();
        }