摘要:
回调函数的基本用法。 using System; using System.Threading; namespace AsyncBasic { class Program { [STAThread] static void Main(string[] args) { new Program().Ex 阅读全文
posted @ 2021-09-26 08:15
double64
阅读(709)
评论(0)
推荐(0)
摘要:
这应该是一种传统的方式吧。 一般顺序: 定义一个委托。 根据委托实现方法。 异步调用。 using System; using System.Threading; namespace AsyncBasic { class Program { [STAThread] static void Main( 阅读全文
posted @ 2021-09-26 08:14
double64
阅读(50)
评论(0)
推荐(0)
摘要:
扩展方法的 3 个要求: 声明扩展方法的类必须声明为 static; 扩展方法本身必须声明为static; 扩展方法第一个参数类型前一定要包含关键字 this。 using System; namespace ExtensionMethods { sealed public class MyMeth 阅读全文
posted @ 2021-09-26 08:13
double64
阅读(211)
评论(0)
推荐(0)
浙公网安备 33010602011771号