摘要:
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文 阅读全文
摘要:
原始数据:N N:非负数时, >>1和/2的运算结果是一样的。 10>>1=5 ; 10/2=5 0>>1=0 ;0/2=0 N:负数且是偶数,>>1和/2的运算结果是一样的。-10>>1=-5; -10/2=-5 N:负数且是奇数,>>1和/2的运算结果是不同的。 -5>>1=-3; -5/2=( 阅读全文