上一页 1 ··· 14 15 16 17 18
摘要: 简单介绍: C#的SemaphoreSlim类和Semaphore类功能相似,都是用于控制多线程对指定资源的访问,但SemaphoreSlim的性能要稍好一些,个人推荐使用SemaphoreSlim; SemaphoreSlim类可以用于控制有多少个线程可以进入指定的代码,它的构造函数Semapho 阅读全文
posted @ 2021-05-22 14:48 二维一加零 阅读(2215) 评论(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 二维一加零 阅读(76) 评论(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 二维一加零 阅读(186) 评论(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 二维一加零 阅读(101) 评论(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 二维一加零 阅读(254) 评论(0) 推荐(0) 编辑
摘要: 点击按钮的后台代码: this.WindowState = WindowState.Minimized; 运行程序后,点击按钮,窗体将最小化。 阅读全文
posted @ 2020-07-05 17:27 二维一加零 阅读(395) 评论(0) 推荐(0) 编辑
摘要: 一切准备就绪……,之后就没有之后了; 需要下载这两个补丁:kb4474419 和 kb4490628; 安装这两个补丁之后,就可以开始安装了VS2019了; 阅读全文
posted @ 2020-06-26 11:03 二维一加零 阅读(537) 评论(0) 推荐(0) 编辑
摘要: 在类中敲出代码ctor,此时可以看见有提示,如下图: 然后,按两次Tab键,默认无参数的构造函数创建完成,如下图: 阅读全文
posted @ 2020-06-10 21:37 二维一加零 阅读(689) 评论(0) 推荐(0) 编辑
摘要: 没有执行构造函数的实例,它的名字默认为空; 执行了构造函数的实例,它的名字为“李白2S”; 效果如下: 代码如下: using System;using System.Collections.Generic;using System.Linq;using System.Runtime.Seriali 阅读全文
posted @ 2020-06-10 21:08 二维一加零 阅读(713) 评论(0) 推荐(0) 编辑
上一页 1 ··· 14 15 16 17 18
点击右上角即可分享
微信分享提示