예제 #1
0
파일: Program.cs 프로젝트: Maxicids/OOP
        static void Main(string[] args)
        {
            Rectangle rec = new Rectangle();

            Reflector.Analize(rec, @"D:\Epam\OOP\Lab12\Lab12\Out.txt");
            Reflector.GetMethods(rec, @"D:\Epam\OOP\Lab12\Lab12\Out.txt");
            Console.WriteLine(rec.area());
            Reflector.Invoke(rec, @"D:\Epam\OOP\Lab12\Lab12\In.txt");
            Console.WriteLine(rec.area());

            object rectangle = Reflector.Create(rec);

            Console.WriteLine(rectangle.ToString());
            Console.ReadKey();
        }