摘要: 委托(Delegate)就是把方法(方法名)作为方法的参数,例如:using System;using System.Collections.Generic;using System.Text;namespace TestDemo{ public delegate void Delegate(int arg); class Program { private static void FunctionX2(int x) { Console.WriteLine(x*x); } private stati... 阅读全文
posted @ 2012-09-27 21:39 Bady 阅读(338) 评论(0) 推荐(0)