12 2022 档案

摘要:▲ 读写的文件 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 阅读(237) 评论(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 阅读(246) 评论(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 阅读(540) 评论(0) 推荐(0) 编辑
摘要:public string GetLocalIPStr() { string localIP = string.Empty; using (Socket socket = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, 0)) { s 阅读全文
posted @ 2022-12-09 13:34 double64 阅读(36) 评论(0) 推荐(0) 编辑
摘要:static void AddFileFix(string fileFullName, string prefix, string suffix) { try { if (string.IsNullOrEmpty(prefix) && string.IsNullOrEmpty(suffix)) { 阅读全文
posted @ 2022-12-09 13:30 double64 阅读(309) 评论(0) 推荐(0) 编辑
摘要:public class SerialNum { public SerialNum() { m_NumByteArr = new byte[4] { 48, 48, 48, 48 }; //m_NumByteArr = new byte[4] { 90, 90, 90, 90 }; ExcludeC 阅读全文
posted @ 2022-12-02 18:06 double64 阅读(265) 评论(0) 推荐(0) 编辑

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