上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 56 下一页
摘要: 测试代码: class Program { static void Main(string[] args) { TestAsync testAsync = new TestAsync(); System.Diagnostics.Stopwatch stopwatch = new System.Dia 阅读全文
posted @ 2023-05-04 19:29 double64 阅读(43) 评论(0) 推荐(0)
摘要: 参考 阅读全文
posted @ 2023-04-07 20:33 double64 阅读(351) 评论(0) 推荐(0)
摘要: ▲ 界面 Helper 类: using System; using System.Collections.Generic; using System.Drawing; using System.Linq; using System.Runtime.InteropServices; using Sy 阅读全文
posted @ 2023-02-14 00:36 double64 阅读(297) 评论(0) 推荐(0)
摘要: 主界面一个测试按钮。 using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; us 阅读全文
posted @ 2023-02-13 09:13 double64 阅读(1352) 评论(0) 推荐(0)
摘要: #define MY_DEBUG // 这个可以用中文 using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Diagnostics; 阅读全文
posted @ 2023-02-02 16:43 double64 阅读(52) 评论(0) 推荐(0)
摘要: 这里在界面按钮事件下除 0 测试,感觉软件还是退出了? /// <summary> /// App.xaml 的交互逻辑 /// </summary> public partial class App : Application { protected override void OnStartup 阅读全文
posted @ 2023-01-30 22:28 double64 阅读(215) 评论(0) 推荐(0)
摘要: 这样的方式比用代码直接赋值有个好处,那就是能个实时的显示绑定效果。IDE 还可以提示和 F12 进行跳转定位。 XAML: <Window x:Class="MyWPFSimple5.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006 阅读全文
posted @ 2023-01-07 22:51 double64 阅读(579) 评论(0) 推荐(0)
摘要: ▲ 读写的文件 XiaoMing.json: {"Name":"小明","Sex":"男","Age":12} JsonWriteTest.json: { "StartX": 1.23, "StartY": 1.24, "EndX": 10, "EndY": "YY", "Favorites": [ 阅读全文
posted @ 2022-12-17 22:22 double64 阅读(256) 评论(0) 推荐(0)
摘要: 引用Newtonsoft.Json.dll using Newtonsoft.Json; 进行对象序列化和反序列化。 服务端: using System; using System.Collections.Generic; using System.Linq; using System.Net; u 阅读全文
posted @ 2022-12-17 21:42 double64 阅读(293) 评论(0) 推荐(0)
摘要: private short ReversalHighLowByte(short val) { byte[] arrSrc = BitConverter.GetBytes(val); byte[] arrDst = new byte[arrSrc.Length]; arrDst[0] = arrSrc 阅读全文
posted @ 2022-12-09 13:50 double64 阅读(605) 评论(0) 推荐(0)
上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 56 下一页