摘要: 今天要学的是委托委托的基本形式直接上代码 1 public delegate int AddDelegate(int x,int y); 2 class Program 3 { 4 static void Main(string[] args) 5 { 6 int x=2;int y=5; 7 AddDelegate addDelegate = new AddDelegate(Add); 8 9 10 int result = addDelegate(x, y);11 ... 阅读全文
posted @ 2013-10-26 14:38 JustDotNet 阅读(282) 评论(0) 推荐(0) 编辑