10 2022 档案

摘要:前提:需要安装WinRAR //文件压缩、解压 //CondenseRarOrZip(@"D:\fff", @"D:\vslz\ccc.rar",true,""); /// <summary> /// 压缩文件成RAR或ZIP文件(需存在Winrar.exe(只要自己电脑上可以解压或压缩文件就存在W 阅读全文
posted @ 2022-10-10 12:37 Mr_Xul 阅读(155) 评论(0) 推荐(0) 编辑
摘要:打开资源管理器 System.Diagnostics.Process.Start("explorer"); 打开资源管理器的指定文件夹 System.Diagnostics.Process.Start("explorer", "/e," + "文件夹路径"); 打开资源管理器的指定文件夹,并选择指定 阅读全文
posted @ 2022-10-10 12:33 Mr_Xul 阅读(48) 评论(0) 推荐(0) 编辑
摘要:依赖 EntityFramework Stub.System.Data.SQLite.Core.NetFramework System.Data.SQLite System.Data.SQLite.Core System.Data.SQLite.EF6 System.Data.SQLite.Linq 阅读全文
posted @ 2022-10-10 12:18 Mr_Xul 阅读(380) 评论(0) 推荐(0) 编辑
摘要:1 /// <summary> 2 /// 读取Excel文件 3 /// </summary> 4 /// <returns></returns> 5 public static DataSet ReadExcel(string path) 6 { 7 DataSet ds = new DataS 阅读全文
posted @ 2022-10-10 11:52 Mr_Xul 阅读(155) 评论(0) 推荐(0) 编辑
摘要:1 /// <summary> 2 /// 将DataTable数据,存储到一个Excel中(.xlsx) 3 /// </summary> 4 /// <param name="dt"></param> 5 /// <param name="filePath"></param> 6 public 阅读全文
posted @ 2022-10-10 11:51 Mr_Xul 阅读(63) 评论(0) 推荐(0) 编辑
摘要:1 /// <summary> 2 /// 获取本地的IP地址 3 /// </summary> 4 /// <returns></returns> 5 public static string GetAddressIP() 6 { 7 string AddressIP = string.Empty 阅读全文
posted @ 2022-10-10 11:38 Mr_Xul 阅读(20) 评论(0) 推荐(0) 编辑
摘要:1 /// <summary> 2 /// 读取文件流 3 /// </summary> 4 public static byte[] ReadFileStream(string filePath) 5 { 6 Stream source = null; 7 byte[] readBytes = n 阅读全文
posted @ 2022-10-10 11:37 Mr_Xul 阅读(24) 评论(0) 推荐(0) 编辑
摘要:1 /// <summary> 2 /// 写入文件流 3 /// </summary> 4 /// <param name="filePath">文件路径(包括文件名和后缀)</param> 5 /// <param name="data">要存储的数据</param> 6 public stat 阅读全文
posted @ 2022-10-10 11:36 Mr_Xul 阅读(68) 评论(0) 推荐(0) 编辑
摘要:1 /// <summary> 2 /// 选择文件夹 3 /// </summary> 4 /// <returns></returns> 5 public static string SelectFolder() 6 { 7 string foldePath = string.Empty; 8 阅读全文
posted @ 2022-10-10 11:34 Mr_Xul 阅读(89) 评论(0) 推荐(0) 编辑
摘要:1 /// <summary> 2 /// 新建线程 3 /// 调用方式:CreateNewThread(new ParameterizedThreadStart(delegate { 方法名(参数); })); 4 /// </summary> 5 /// <param name="parame 阅读全文
posted @ 2022-10-09 16:59 Mr_Xul 阅读(116) 评论(0) 推荐(0) 编辑
摘要:1 /// <summary> 2 /// Datatable转为模型 3 /// </summary> 4 /// <typeparam name="T"></typeparam> 5 /// <param name="dt"></param> 6 /// <returns></returns> 阅读全文
posted @ 2022-10-09 16:54 Mr_Xul 阅读(15) 评论(0) 推荐(0) 编辑
摘要:1 /// <summary> 2 /// 模型转为Datatable 3 /// </summary> 4 /// <typeparam name="T"></typeparam> 5 /// <param name="list"></param> 6 /// <returns></returns 阅读全文
posted @ 2022-10-09 16:53 Mr_Xul 阅读(98) 评论(0) 推荐(0) 编辑

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