从一个类中访问另一个类中的私有方法
摘要:
有两种方法可以解决,一个是利用反射,另一个就是用委托。using System;using System.Reflection;namespace DelegateTest{ public delegate int MyHandler(int x, int y); public class Test { public void CallByReflect() { MethodTest target = new MethodTest(); Type type = target.GetType(); ... 阅读全文
posted @ 2013-05-05 21:01 一一一 阅读(501) 评论(0) 推荐(0)
浙公网安备 33010602011771号