02 2023 档案
摘要:static void Main(string[] args) { int[] nums = new int[] { 1, 2, 3, 4 }; int total = 0; Parallel.For<int>(0, nums.Length, () => { return 1; }, (i, loo
阅读全文
摘要:static void Main(string[] args) { for(int i = 0; i < 100; i++) { Console.WriteLine(GuidResult("N")); Console.WriteLine(GuidResult("D")); Console.Write
阅读全文
摘要:在使用LINQ查询时,可以按顺序输出查询结果。同时,LINQ也拓展了并行计算 --> PLINQ。 static void Main(string[] args) { List<int> intList = new List<int>() { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9
阅读全文