摘要: //public event SecondChangeHandler OnSecondChange; 若将委托加上event,则视作是事件,不是委托,外围就不能直接对OnSecondChange传值using System;using System.Collections.Generic;using... 阅读全文
posted @ 2013-09-24 23:57 MrMrCash 阅读(344) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading;namespace Starter{ public enum Comparison ... 阅读全文
posted @ 2013-09-19 13:18 MrMrCash 阅读(503) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading;//如果账户金额小于0 触发事件namespace Starter{ public ... 阅读全文
posted @ 2013-09-18 01:22 MrMrCash 阅读(255) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading;//如果账户金额小于0 触发事件namespace Starter{ public ... 阅读全文
posted @ 2013-09-17 00:42 MrMrCash 阅读(259) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading;//异步调用//returntype EndInvoke(ref_out_argument... 阅读全文
posted @ 2013-09-15 23:58 MrMrCash 阅读(222) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading;//异步调用//IAsyncResult BeginInvoke(argument,Asy... 阅读全文
posted @ 2013-09-15 23:23 MrMrCash 阅读(237) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace Delegate{ public delegate int Myfunction(ref int refCou... 阅读全文
posted @ 2013-09-14 21:31 MrMrCash 阅读(181) 评论(0) 推荐(0) 编辑
摘要: 值参数不能加,引用参数可以。引用参数是共享的using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace Delegate{ public delegate void My... 阅读全文
posted @ 2013-09-13 01:12 MrMrCash 阅读(657) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace Delegate{ public delegate void Myfunction(); class P... 阅读全文
posted @ 2013-09-13 01:00 MrMrCash 阅读(284) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace Delegate{ public delegate void Myfunction(); class P... 阅读全文
posted @ 2013-09-13 00:51 MrMrCash 阅读(619) 评论(0) 推荐(0) 编辑