示例#1
0
        public static void ReflectionTest03()
        {
            var ins     = new TestCls();
            var type    = ins.GetType();
            var method  = type.GetMethod("foo");
            var method2 = type.GetMethod("bar");

            method.Invoke(ins, new object[] { 100 });
            method2.Invoke(null, null);
        }