随笔分类 - C# 基础知识
摘要:using System.Text; using System.Runtime.InteropServices; namespace Win_F2P { class RW_IniFile { [DllImport("kernel32", CharSet = CharSet.Unicode, SetL
阅读全文
摘要:举个例子: 字符串:str_Command=“01 06 10 00 00 00 8D 07” 转为8位字节数组: string[] strs = str_Command.Split(' '); byte[] bts = new byte[strs.Length]; for (int i = 0;
阅读全文
摘要:1.配置编译环境: “计算机”-》“属性”-》“高级系统设置”-》“环境变量”-》“***用户变量” -》“Path”-》“编辑”-》 填入“;C:\Windows\Microsoft.NET\Framework\v4.0.30319” 注意: (1) 可以修改“系统变量”的Path。 (2) 填入
阅读全文
摘要:强烈建议去微软官网看文档,UI组件类未贴出,且这个乱↓↓↓ 一.监听端口 using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;
阅读全文
摘要:1.环境: 开发语言:C#, 开发工具VS2017 using System.Web.Script.Serialization; //需要添加System.Web.Extensions.dll 2.JSON文件内容 (注意:最外层是数组[]) [ { "ID":0, "serials": [ {"x
阅读全文
摘要:序列化 (Serialization)是将对象的状态信息转换为可以存储或传输的形式的过程. 1.环境: 开发语言:C#, 开发工具VS2017 using System.Web.Script.Serialization; //需要添加System.Web.Extensions.dll 2.JSON文
阅读全文