Example #1
0
        static void Main()
        {
            var p1 = new Point1(1, 2);

            Console.WriteLine((p1.GetMember(0), p1.GetMember(1)));

            var p2 = new Point2(1, 2);

            Console.WriteLine((p2.GetMember("X"), p2.GetMember("Y")));

            var p3 = new Point3(1, 2);

            foreach (var t in p3.EnumerateMembers())
            {
                Console.WriteLine(t);
            }

            var p = new Point(1, 2);

            Console.WriteLine((p.GetMember(0), p.GetMember(1)));
            Console.WriteLine((p.GetMember("X"), p.GetMember("Y")));
            foreach (var t in p3.EnumerateMembers())
            {
                Console.WriteLine(t);
            }
        }