2020年8月1日

C#正则表达式经典分类整理集合手册

摘要: C#正则表达式经典分类整理集合手册 正则 ?<= 和 ?= 用法 阅读全文

posted @ 2020-08-01 14:35 jshchg 阅读(165) 评论(0) 推荐(0) 编辑

C# 正则表达式大全

摘要: 转载至: https://www.cnblogs.com/hehehehehe/p/6043710.html 阅读全文

posted @ 2020-08-01 14:14 jshchg 阅读(2342) 评论(0) 推荐(0) 编辑

2020年6月19日

各种新主流.net混淆加密软件对比

摘要: 一:Dotfuscator 首先是使用Dotfuscator对.net程序加密码混淆。VS自带了PreEmptive Dotfuscator and Analytic5.22混淆工具,默认的安装路径是C:\Program Files (x86)\Microsoft Visual Studio 14. 阅读全文

posted @ 2020-06-19 17:28 jshchg 阅读(6372) 评论(0) 推荐(1) 编辑

2020年5月31日

string format double

摘要: 转载至:http://www.csharp-examples.net/string-format-double/ String Format for Double [C#] 下面的例子显示如何在C#中的字符串格式化浮点数。你可以使用静态方法String.Format 或实例方法double.ToSt 阅读全文

posted @ 2020-05-31 22:03 jshchg 阅读(962) 评论(0) 推荐(0) 编辑

2020年5月24日

System.Timers.Timer

摘要: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Diagnostics; using System.Drawing; using 阅读全文

posted @ 2020-05-24 14:05 jshchg 阅读(116) 评论(0) 推荐(0) 编辑

System.Threading.Timer

摘要: 线程计时器也不依赖窗体,是一种简单的、轻量级计时器,它使用回调方法而不是使用事件,并由线程池线程提供支持 阅读全文

posted @ 2020-05-24 13:37 jshchg 阅读(866) 评论(0) 推荐(0) 编辑

立即执行的System.Timers.Timer

摘要: System.Timers.Timer的Start方法或者设置Enabled=True都不会立即执行Elapsed事件,而是会等设置的Interval这么长时间之后才会执行。 解决办法: 先设置Interval为1,然后在Elapsed事件里面重新设置想要的Interval,代码如下: 1 stat 阅读全文

posted @ 2020-05-24 13:20 jshchg 阅读(1368) 评论(0) 推荐(0) 编辑

2020年5月22日

C#中Socket关闭 Close、Dispose、Shutdown、Disconnect

摘要: 1、翻译自StackOverflow的推论 原文:https://stackoverflow.com/questions/35229143/what-exactly-do-sockets-shutdown-disconnect-close-and-dispose-do This answer mad 阅读全文

posted @ 2020-05-22 08:34 jshchg 阅读(5999) 评论(0) 推荐(1) 编辑

2020年5月21日

UdpClient使用

摘要: 客户端: public class UdpClientManager { //接收数据事件 public Action<string> recvMessageEvent = null; //发送结果事件 public Action<int> sendResultEvent = null; //本地监 阅读全文

posted @ 2020-05-21 23:14 jshchg 阅读(465) 评论(0) 推荐(0) 编辑

C#实现异步阻塞TCP

摘要: C#实现异步阻塞TCP(SocketAsyncEventArgs,SendAsync,ReceiveAsync,AcceptAsync,ConnectAsync)、集客户端断开重连机制、分包发送机制、异步收发于一体。 阅读全文

posted @ 2020-05-21 23:03 jshchg 阅读(1105) 评论(0) 推荐(0) 编辑

导航