随笔分类 -  .NET

C# Framework
摘要:delegate、Action、Function、EventHandler 阅读全文
posted @ 2020-01-10 18:17 wesson2019 阅读(361) 评论(0) 推荐(0)
摘要:dd 阅读全文
posted @ 2020-01-09 18:37 wesson2019 阅读(178) 评论(0) 推荐(0)
摘要:using System.Diagnostics; 以静默方式运行bat脚本 Console.WriteLine("同步执行"); Console.WriteLine(CMDHelper.CMDExecute("TimeStampVerificationCode.bat")); Console.Wr 阅读全文
posted @ 2020-01-09 17:54 wesson2019 阅读(579) 评论(0) 推荐(0)
摘要:MathEx 阅读全文
posted @ 2020-01-09 17:25 wesson2019 阅读(163) 评论(0) 推荐(0)
摘要:FileHelper, FileContentTypeHelper, FileEntity 阅读全文
posted @ 2020-01-09 17:16 wesson2019 阅读(510) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2020-01-09 16:01 wesson2019 阅读(101) 评论(0) 推荐(0)
摘要:摘要、加密 阅读全文
posted @ 2020-01-08 10:03 wesson2019 阅读(334) 评论(0) 推荐(0)
摘要:ZipArchiveHelper 阅读全文
posted @ 2020-01-06 11:58 wesson2019 阅读(816) 评论(0) 推荐(0)
摘要:屏幕工作区右下角 NewWindow win = new NewWindow(arg1, arg2); win.WindowStartupLocation = WindowStartupLocation.Manual; win.Left = SystemParameters.WorkArea.Wid 阅读全文
posted @ 2020-01-06 11:28 wesson2019 阅读(102) 评论(0) 推荐(0)
摘要:升级整体流程 双击主程序(MainWindow.exe),先确定是否升级(升级程序、主程序的版本检查),再定期检查(比如3分钟); 升级程序(AutoUpdate.exe)(与主程序在同级目录下)若更新,直接下载最新并覆盖; 主程序若更新,下载xml升级信息,打开升级程序并关闭主程序,进入升级流程; 阅读全文
posted @ 2019-12-31 21:00 wesson2019 阅读(873) 评论(0) 推荐(0)
摘要:xml 阅读全文
posted @ 2019-12-31 20:57 wesson2019 阅读(417) 评论(0) 推荐(0)
摘要:regex 阅读全文
posted @ 2019-12-31 20:06 wesson2019 阅读(221) 评论(0) 推荐(0)
摘要:常用类型转换 阅读全文
posted @ 2019-12-31 20:05 wesson2019 阅读(426) 评论(0) 推荐(0)
摘要:Property 属性 Feature 特征 Abttriute 特性 阅读全文
posted @ 2019-12-31 20:04 wesson2019 阅读(126) 评论(0) 推荐(0)
摘要:下载、HttpClient、WebClient、HttpWebRequest 阅读全文
posted @ 2019-12-31 20:03 wesson2019 阅读(770) 评论(0) 推荐(0)
摘要:covariance,contravariance, invariance,协变,逆变,不变 阅读全文
posted @ 2019-12-31 18:43 wesson2019 阅读(222) 评论(0) 推荐(0)
摘要:WMI(Windows Management Instrumentation,Windows管理规范)作为一项Windows管理技术,用户可以使用WMI管理本地和远程计算机。作为一种规范和基础结构,通过它可以访问、配置、管理和监视几乎所有的Windows资源。 管理本地计算机 获得本地计算机已安装程 阅读全文
posted @ 2019-12-31 18:41 wesson2019 阅读(153) 评论(0) 推荐(0)
摘要:文件另存为 using Forms = System.Windows.Forms; string fileName = $"aaa_{DateTime.Now.ToString("yyyyMMddHHmmssfff")}.xls"; Forms.SaveFileDialog dlg = new Fo 阅读全文
posted @ 2019-12-31 18:24 wesson2019 阅读(281) 评论(0) 推荐(0)
摘要:仅当两个对象具有相同的GetHashCode()时才使用Equals()。 如果没有具有相同GetHashCode()的对象,则没有机会使用Equals()。 demo = demo.Distinct(EntityDto.ComparerByKey).ToList(); public class E 阅读全文
posted @ 2019-12-31 18:14 wesson2019 阅读(321) 评论(0) 推荐(0)
摘要:Reflection 阅读全文
posted @ 2019-12-31 18:12 wesson2019 阅读(343) 评论(0) 推荐(0)