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