摘要: 上篇 已经说到委托实际上可以理解成一类方法的类型,这样类型自然可以作为方法的参数传递。例子:public Delegatestring TestEventHander(string Name);//定义委托public class Student{ public voidGetDelegate(string Name,TestEventHander test)//委托做为参数传递,实现了方法做为方法的参数进行传递 { test(Name); }}static void Main(sting[] args){Student stu=new Student();stu.GetDeleg... 阅读全文
posted @ 2012-08-14 23:26 see love 阅读(193) 评论(0) 推荐(0) 编辑