摘要: 如果统计实际代码行数,可以通过搜索文件正则过滤。 正则表达式^(?([^\r\n])\s)*[^\s+?/]+[^\n]*$ 快捷键ctrl+shift+f。find all。 參考:https://www.cnblogs.com/yuefei/p/3794709.html 阅读全文
posted @ 2023-10-20 16:20 灰主流 阅读(74) 评论(0) 推荐(1) 编辑
摘要: /// <summary> /// 求数组中n个元素的组合 /// </summary> public static List<T[]> GetCombination<T>(T[] t, int n) { if (t.Length < n) { return new List<T[]>(){t}; 阅读全文
posted @ 2023-03-08 13:55 灰主流 阅读(124) 评论(0) 推荐(0) 编辑
摘要: 官方下载地址: Download WMI Code Creator v1.0 from Official Microsoft Download Center 备份:https://files.cnblogs.com/files/congqiandehoulai/WMICodeCreator.zip 阅读全文
posted @ 2022-08-11 12:15 灰主流 阅读(48) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Collections.Generic; using System.Data; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks 阅读全文
posted @ 2022-06-27 22:05 灰主流 阅读(132) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Collections.Generic; using System.Drawing; using System.IO; using System.Linq; using System.Text; using System.Threading.Ta 阅读全文
posted @ 2022-06-27 22:02 灰主流 阅读(118) 评论(0) 推荐(0) 编辑
摘要: E-1394-97 3 Terminology 术语3.1 Standard Term 标准术语3.1.1 Battery "一组测试集合,如Admitting Battery。同意语:Profile、Panel。用户可以订阅多个测试通过一个名称"3.1.2 Component field 字段,一 阅读全文
posted @ 2022-06-27 21:56 灰主流 阅读(643) 评论(0) 推荐(0) 编辑
摘要: private static void CreateMiniDump(string processName) { var pl = Process.GetProcessesByName(processName); if (pl.Length == 0) { Console.WriteLine($"找 阅读全文
posted @ 2022-06-27 21:51 灰主流 阅读(182) 评论(0) 推荐(0) 编辑
摘要: 源app class Program { /// <summary> /// 方法入口123 /// </summary> /// <param name="args"></param> static void Main(string[] args) { Program.Plus(3,3); var 阅读全文
posted @ 2022-06-27 21:46 灰主流 阅读(274) 评论(0) 推荐(0) 编辑
摘要: Roslyn可以对代码进行分析,查找代码并替换代码。参考文档如下: https://roslynquoter.azurewebsites.net/https://devblogs.microsoft.com/visualstudio/roslyn-syntax-visualizers/https:/ 阅读全文
posted @ 2022-06-27 20:28 灰主流 阅读(372) 评论(0) 推荐(0) 编辑
摘要: using (FileStream fs = new FileStream(fileName, FileMode.OpenOrCreate)) { //string[] resourceNames = this.GetType().Assembly.GetManifestResourceNames( 阅读全文
posted @ 2022-02-25 11:19 灰主流 阅读(536) 评论(0) 推荐(0) 编辑