随笔分类 - .NET
C# Framework
摘要:delegate、Action、Function、EventHandler
阅读全文
摘要:using System.Diagnostics; 以静默方式运行bat脚本 Console.WriteLine("同步执行"); Console.WriteLine(CMDHelper.CMDExecute("TimeStampVerificationCode.bat")); Console.Wr
阅读全文
摘要:FileHelper, FileContentTypeHelper, FileEntity
阅读全文
摘要:ZipArchiveHelper
阅读全文
摘要:屏幕工作区右下角 NewWindow win = new NewWindow(arg1, arg2); win.WindowStartupLocation = WindowStartupLocation.Manual; win.Left = SystemParameters.WorkArea.Wid
阅读全文
摘要:升级整体流程 双击主程序(MainWindow.exe),先确定是否升级(升级程序、主程序的版本检查),再定期检查(比如3分钟); 升级程序(AutoUpdate.exe)(与主程序在同级目录下)若更新,直接下载最新并覆盖; 主程序若更新,下载xml升级信息,打开升级程序并关闭主程序,进入升级流程;
阅读全文
摘要:常用类型转换
阅读全文
摘要:Property 属性 Feature 特征 Abttriute 特性
阅读全文
摘要:下载、HttpClient、WebClient、HttpWebRequest
阅读全文
摘要:covariance,contravariance, invariance,协变,逆变,不变
阅读全文
摘要:WMI(Windows Management Instrumentation,Windows管理规范)作为一项Windows管理技术,用户可以使用WMI管理本地和远程计算机。作为一种规范和基础结构,通过它可以访问、配置、管理和监视几乎所有的Windows资源。 管理本地计算机 获得本地计算机已安装程
阅读全文
摘要:文件另存为 using Forms = System.Windows.Forms; string fileName = $"aaa_{DateTime.Now.ToString("yyyyMMddHHmmssfff")}.xls"; Forms.SaveFileDialog dlg = new Fo
阅读全文
摘要:仅当两个对象具有相同的GetHashCode()时才使用Equals()。 如果没有具有相同GetHashCode()的对象,则没有机会使用Equals()。 demo = demo.Distinct(EntityDto.ComparerByKey).ToList(); public class E
阅读全文

浙公网安备 33010602011771号