08 2020 档案
摘要:新特性1、List? //取第一个元素 List<string> list = null; //正常写法 if (list != null && list.Count() > 0) { string sFirst = list[0]; } //新特性 string firstX = list?[0]
阅读全文
摘要:为什么要用线程池? 不需要重复新开销毁线程 环境: vs 2015 .net 4.5.2 输出环境:控制台应用程序 贴代码: class Program { static int workerThreads;//线程池中辅助线程的最大数目 static int completionPortThrea
阅读全文

浙公网安备 33010602011771号