随笔分类 -  C#

摘要:public string ReverseA(string text) { char[] cArray = text.ToCharArray(); string reverse = String.Empty; int a = 0; for (int i = cArray.Length - 1; i 阅读全文
posted @ 2022-07-01 14:58 微风吹过~ 阅读(90) 评论(0) 推荐(0) 编辑
摘要:using Sys = System;using System.IO; /// <summary> /// 写入文件 /// </summary> /// <param name="Path">文件路径</param> /// <param name="content">文件内容</param> p 阅读全文
posted @ 2022-06-17 10:40 微风吹过~ 阅读(418) 评论(0) 推荐(0) 编辑
摘要:异常描述 System.InvalidOperationException HResult=0x80131509 Message=Nullable object must have a value. Source=System.Private.CoreLib StackTrace: at Syste 阅读全文
posted @ 2022-05-31 15:00 微风吹过~ 阅读(444) 评论(0) 推荐(0) 编辑
摘要:CA2000:丢失范围之前释放对象 原因 创建了 IDisposable 类型的本地对象,但该对象不会被释放,除非对对象的所有引用都超出范围。 默认情况下,此规则会分析整个代码库,但这是可配置的。 如何解决冲突 可使用 using 语句来包装实现 IDisposable 的对象。 以这种方式包装的对 阅读全文
posted @ 2022-05-20 16:35 微风吹过~ 阅读(32) 评论(0) 推荐(0) 编辑
摘要:1.在Startup添加 new JobCenter().Start();(红色字体,下同) // This method gets called by the runtime. Use this method to configure the HTTP request pipeline. publ 阅读全文
posted @ 2022-04-05 23:52 微风吹过~ 阅读(815) 评论(0) 推荐(2) 编辑

点击右上角即可分享
微信分享提示