摘要: 代码如下: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; name 阅读全文
posted @ 2021-08-29 22:35 艾特-天空之海 阅读(116) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using System.Text; using System.Threading.Tasks; nam 阅读全文
posted @ 2021-08-22 14:31 艾特-天空之海 阅读(29) 评论(0) 推荐(0) 编辑
摘要: 简单介绍: 此处介绍的并行处理,主要是处理本地存储的数据;当使用并行处理时,会把数据拆分为多个小块,然后用多个线程处理这些小块的数据,多线程处理后的数据再统一处理再返回; 以下是处理100万数组的数据量;代码如下: using System; using System.Collections.Gen 阅读全文
posted @ 2021-05-23 10:18 艾特-天空之海 阅读(69) 评论(0) 推荐(0) 编辑
摘要: 简单介绍: C#的SemaphoreSlim类和Semaphore类功能相似,都是用于控制多线程对指定资源的访问,但SemaphoreSlim的性能要稍好一些,个人推荐使用SemaphoreSlim; SemaphoreSlim类可以用于控制有多少个线程可以进入指定的代码,它的构造函数Semapho 阅读全文
posted @ 2021-05-22 14:48 艾特-天空之海 阅读(2134) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Text; using System.Threading.Tasks; namespace 阅读全文
posted @ 2021-05-08 00:32 艾特-天空之海 阅读(73) 评论(0) 推荐(0) 编辑
摘要: static void Main(string[] args) { List<Man> list = new List<Man>(); for (int i = 0; i < 10; i++) { Man d = new Man(); d.Age = i ; d.Name = i.ToString( 阅读全文
posted @ 2021-05-08 00:15 艾特-天空之海 阅读(178) 评论(0) 推荐(0) 编辑
摘要: namespace test_Console{ public class Man { public void Go() { Console.WriteLine("GO"); } } class Program { static void Main(string[] args) { Go<Man>() 阅读全文
posted @ 2021-05-07 23:52 艾特-天空之海 阅读(98) 评论(0) 推荐(0) 编辑
摘要: <Button Background="Transparent" Margin="0,0,139,61"> <Button.Content> <StackPanel> <Ellipse Fill="Green" Width="25" Height="25"/> <Label Content="OK! 阅读全文
posted @ 2020-07-05 19:01 艾特-天空之海 阅读(240) 评论(0) 推荐(0) 编辑
摘要: 点击按钮的后台代码: this.WindowState = WindowState.Minimized; 运行程序后,点击按钮,窗体将最小化。 阅读全文
posted @ 2020-07-05 17:27 艾特-天空之海 阅读(391) 评论(0) 推荐(0) 编辑
摘要: 一切准备就绪……,之后就没有之后了; 需要下载这两个补丁:kb4474419 和 kb4490628; 安装这两个补丁之后,就可以开始安装了VS2019了; 阅读全文
posted @ 2020-06-26 11:03 艾特-天空之海 阅读(527) 评论(0) 推荐(0) 编辑