2013年4月19日

摘要: 一个很简单的通过委托调用方法using System;namespace ConsoleApplication1{ public class DelegateTest { public delegate void MyDelegate(int a, int b); private void Add(int a, int b) { Console.WriteLine("a + b = " + (a + b).ToString()); } static void Main(string[] ar... 阅读全文
posted @ 2013-04-19 09:14 bin斌 阅读(233) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ConsoleApplication1{ public class EventTest { public delegate void MyFunc(object sender, EventArgs e); public event MyFunc myFunc; public MyEvent myEvent; public EventTest() ... 阅读全文
posted @ 2013-04-19 09:03 bin斌 阅读(146) 评论(0) 推荐(0) 编辑

导航