摘要:
using System; using System.Collections; namespace 预处理指令 { class Program { static void Main(string[] args) { GetArrayList(); GetStack(); Console.ReadKe 阅读全文
posted @ 2021-07-28 16:36
月长生
阅读(24)
评论(0)
推荐(0)
摘要:
using System; namespace AbstractAndVirtual { class Program { static void Main(string[] args) { GetSharp getSharp= new GetSharp(); GetNewSharp getNewSh 阅读全文
posted @ 2021-07-28 16:06
月长生
阅读(19)
评论(0)
推荐(0)
摘要:
多线程 using System; using System.Threading; namespace ThreadTest { class Program { static void Main(string[] args) { Thread th = Thread.CurrentThread; t 阅读全文
posted @ 2021-07-28 14:39
月长生
阅读(21)
评论(0)
推荐(0)
摘要:
事件和委托的关系相当于属性和字段的关系,事件可以说是特殊的委托,下面是事件的简单练习1 using System; namespace EventTest { class Program { static void Main(string[] args) { Test t = new Test(); 阅读全文
posted @ 2021-07-28 10:19
月长生
阅读(29)
评论(0)
推荐(0)
摘要:
委托顾名思义,即使将方法交给它,然后它去执行,定义的时候要注意委托返回值要和方法的返回值一致,参数类型和个数也要一致,现在直接上代码 using System; delegate void getNum(int a,int b);//定义委托返回值为空,两个参数类型int namespace del 阅读全文
posted @ 2021-07-28 09:53
月长生
阅读(36)
评论(0)
推荐(0)