static void Main(string[] args) { MyTestClass myTestClass = new MyTestClass(12.2, 13.3); Reflect.MethodOne <MyTestClass>(myTestClass); Reflect.MethodTwo <MyTestClass>(myTestClass); Reflect.MethodThree <MyTestClass>(myTestClass); Reflect.MethodFour <MyTestClass>(myTestClass); string s; Console.WriteLine("Введите тип аргумента(Double, Int32): "); s = Console.ReadLine(); Reflect.MethodTwoDOP <MyTestClass>(myTestClass, s); Reflect.LastMethod <MyTestClass>(myTestClass, "ToConsole"); }
static void Main(string[] args) { MyTestClass myTestClass = new MyTestClass(12.2, 13.3); Reflect.MethodA <MyTestClass>(myTestClass); Reflect.MethodB <MyTestClass>(myTestClass); Reflect.MethodC <MyTestClass>(myTestClass); Reflect.MethodD <MyTestClass>(myTestClass); string s; Console.WriteLine("Введите тип аргумента(Double, Int32): "); s = Console.ReadLine(); Reflect.MethodE <MyTestClass>(myTestClass, s); Reflect.MethodF <MyTestClass>(myTestClass, "ToConsole"); }