摘要:
//1.字节转换 float m = 5f; var btValue = BitConverter.GetBytes(m).Reverse().ToArray(); //转为原值字符串 string m1 = System.Text.Encoding.Default.GetString(btValu 阅读全文
摘要:
一、定义Class using System; using System.Runtime.InteropServices; using System.Text; namespace IniDemo { public class IniFile { private string m_FileName; 阅读全文
摘要:
public static void WriteLog(string strLog) { string pathName = Environment.CurrentDirectory + "\\LOG\\" + DateTime.Now.ToString("yyyyMMdd"); string Fi 阅读全文
摘要:
private Dictionary<string, string> GenDictionary(byte[] inMsg) { Dictionary<string, string> dictionary = new Dictionary<string, string>(); string arg= 阅读全文