03 2023 档案

摘要:/// <summary> /// DataTable行转列 /// </summary> /// <param name="sourcedt">源数据</param> /// <param name="columnList">列信息</param> /// <returns>转换之后的数据</re 阅读全文
posted @ 2023-03-30 13:46 安静点-- 阅读(214) 评论(0) 推荐(0) 编辑
摘要:/// <summary> /// DataTable转换成实体类 /// </summary> /// <typeparam name="T"></typeparam> /// <param name="dt"></param> /// <returns></returns> public sta 阅读全文
posted @ 2023-03-30 13:45 安静点-- 阅读(89) 评论(0) 推荐(0) 编辑
摘要:public class ExcelHelper { #region 私有方法 /// <summary> /// 获取要保存的文件名称(含完整路径) /// </summary> /// <returns></returns> private static string GetSaveFilePa 阅读全文
posted @ 2023-03-30 11:58 安静点-- 阅读(121) 评论(0) 推荐(0) 编辑
摘要:下面是根据实际使用中截取的部分关键代码 public class ImportFromExcel : ExcelHelperBase { /// <summary> /// 读取Excel表格信息. /// </summary> /// <param name="excelFilePath">Exc 阅读全文
posted @ 2023-03-30 11:55 安静点-- 阅读(681) 评论(0) 推荐(0) 编辑
摘要:namespace TestApp { class Program { const string WSS_TEST_SERVER = "wss://echo.websocket.org"; static void Main(string[] args) { TestConnection(WSS_TE 阅读全文
posted @ 2023-03-30 09:45 安静点-- 阅读(228) 评论(0) 推荐(0) 编辑
摘要:<Window x:Class="License.UI.DetailsInterface" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/ 阅读全文
posted @ 2023-03-28 14:06 安静点-- 阅读(172) 评论(0) 推荐(0) 编辑
摘要:使用ClientWebSocket的时候是通过async/await语法糖来实现同步的异步编程,本质就是Task开启任务,所以是以多线程的形式执行,此时最大的并发连接数就是2或者10个,所以可以代码设置一下最大的并发连接: System.Net.ServicePointManager.Default 阅读全文
posted @ 2023-03-25 15:56 安静点-- 阅读(80) 评论(0) 推荐(0) 编辑
摘要:private Stopwatch _downloadStopWatch = _downloadStopWatch = new Stopwatch(); private bool WebClientDownloadInstallerFile(string url, string fileName, 阅读全文
posted @ 2023-03-22 15:08 安静点-- 阅读(30) 评论(0) 推荐(0) 编辑
摘要:<Style.Triggers> <Trigger Property="IsMouseOver" Value="True"> <Setter Property="Background"> <Setter.Value> <LinearGradientBrush StartPoint="0,0" End 阅读全文
posted @ 2023-03-22 09:17 安静点-- 阅读(237) 评论(0) 推荐(0) 编辑

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