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

posted @ 2018-06-09 09:51 MaxsBlog 阅读(1659) 评论(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 阅读(148) 评论(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)


摘要: 随笔记一下: 需要引用: using System.Text.RegularExpressions; 1 public static string[] StrList(string ValStr) 2 { 3 int i = 0; 4 string str = ValStr; 5 string[] 阅读全文

posted @ 2018-05-28 10:54 MaxsBlog 阅读(301) 评论(1) 推荐(0)


2019年5月29日

摘要: Form1 Form1,commBar代码: using COM_TEST; using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Dr 阅读全文

posted @ 2019-05-29 17:13 MaxsBlog 阅读(224) 评论(0) 推荐(0)


2018年9月4日

摘要: using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace ConsoleApp2 { class Program { static void Main(string[] args) { str... 阅读全文

posted @ 2018-09-04 17:04 MaxsBlog 阅读(148) 评论(0) 推荐(0)


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