06 2018 档案

摘要:最近一直在研究委托与事件,下面是我的个人理解 NOTE:参考了张子阳的思想,各位大佬可以看看http://www.cnblogs.com/JimmyZhang/archive/2007/09/23/903360.html 1.事件要有委托,参数,事件 2.委托可以自己定义:public delega 阅读全文

posted @ 2018-06-09 09:51 MaxsBlog 阅读(1669) 评论(0) 推荐(0) |

摘要:using System; using System.Threading; namespace DelegateEvents { class Program { static void Main(string[] args) { Tostring To = new Tostring(); T... 阅读全文

posted @ 2018-06-08 19:45 MaxsBlog 阅读(149) 评论(0) 推荐(0) |

摘要:1 using System; 2 3 namespace DelegateEvents 4 { 5 public delegate string Mydel(string Mystring);//定义一个委托,和类同级 6 class Program 7 { 8 static void Main(string[] args) ... 阅读全文

posted @ 2018-06-08 18:01 MaxsBlog 阅读(148) 评论(0) 推荐(0) |

博客园  ©  2004-2026
浙公网安备 33010602011771号 浙ICP备2021040463号-3