打赏
上一页 1 2 3 4 5 6 ··· 59 下一页
摘要: 直接贴出代码示例: // 现在有10个人要过桥 // 但是一座桥上只能承受5个人,再多桥就会塌 public static void SemaphoreTest() { var semaphore = new SemaphoreSlim(5); for (int i = 1; i <= 10; i+ 阅读全文
posted @ 2022-06-22 10:53 刘奇云 阅读(154) 评论(0) 推荐(0) 编辑
摘要: public class HtmlParseHelper { /// <summary> /// markdown 链接转 html a链接 /// [link](/url)转为<a class='view-more-options' href='/url'>link</a> /// </summa 阅读全文
posted @ 2022-05-17 10:32 刘奇云 阅读(185) 评论(0) 推荐(0) 编辑
摘要: [HttpPost] public HttpResponseMessage UploadFile() { HttpResponseMessage result = null; var httpRequest = Request; try { var content = httpRequest.Con 阅读全文
posted @ 2022-04-20 17:14 刘奇云 阅读(349) 评论(0) 推荐(0) 编辑
摘要: getHttpClient httpClient = new HttpClient(); var request = new HttpRequestMessage() { Content = null, Method = HttpMethod.Get, RequestUri = new Uri("h 阅读全文
posted @ 2022-04-20 13:51 刘奇云 阅读(174) 评论(0) 推荐(0) 编辑
摘要: VSCode Ctrl+D功能在Visual Studio 中为Alt+Shift+. 用着有点麻烦,下面介绍怎么在Visual Studio 中自定义快捷键,也用Ctrl+D vs22中这么设置不生效啊,重启vs也不行,无解,有大哥知道的评论区教教啊 阅读全文
posted @ 2022-03-10 09:57 刘奇云 阅读(299) 评论(0) 推荐(0) 编辑
摘要: 默认Visual Studio 2022 不再支持安装 .NET Framework 4.5 当我们项目是4.5框架时,22不支持,需要我们自行安装框架包,下面是步骤: nuget 下载 4.5 安装包 下载地址:https://www.nuget.org/packages/microsoft.ne 阅读全文
posted @ 2022-02-28 14:28 刘奇云 阅读(3627) 评论(0) 推荐(0) 编辑
摘要: 1.mysql 逗号会优化为inner join,没有区别 EXPLAIN select test.id id,test.Name name,test_ordervy.Id id2,test_ordervy.Name name2 from test,test_ordervy where test.i 阅读全文
posted @ 2022-02-22 10:25 刘奇云 阅读(202) 评论(0) 推荐(0) 编辑
摘要: public class Program { static void Main(string[] args) { int state1 = (int)EnumApplyVehicleState.Approving; int state2 = ApplyVehicleState.Approving; 阅读全文
posted @ 2022-02-17 15:14 刘奇云 阅读(76) 评论(0) 推荐(0) 编辑
摘要: CQRS MediatR中介者模式,这个讲的非常明白怎么用 MediatRInstall MediatR PM> Install-Package MediatRIMeditatorIRequese、IRequestIRequestHandler<in TRequest, TResponse> pub 阅读全文
posted @ 2022-02-16 18:00 刘奇云 阅读(73) 评论(0) 推荐(0) 编辑
摘要: 三.List List<string> list = new List<string>(); list.Add("1"); list.Contains("1"); list.Remove("1"); 阅读全文
posted @ 2022-02-16 16:42 刘奇云 阅读(54) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 59 下一页