c#编写串口调试助手源码
public static ArrayList Str16ToArrayList(string strIn) { string sParse = ""; ArrayList myAL = new ArrayList(); int i = 0; foreach (char cc in strIn) { i++; if (cc == ' ' || sParse.Length == 2) { myAL.Add(sParse); if (sParse.Length == 2 && cc != ' ') { sParse = Convert.ToString(cc); } else { sParse = ""; } } else { sParse += Convert.ToString(cc); if (i == strIn.Length && cc != ' ') { myAL.Add(sParse); } } } return myAL; } else { sParse = ""; } } else { sParse += Convert.ToString(cc); if (i == strIn.Length && cc != ' ') { myAL.Add(sParse); } } } return myAL; }
文件列表
ComAssistant.rar
(预估有个38文件)
ComAssistant
ComAssistant
MyClass.cs
1KB
ComAssistant.csproj.user
554B
Form1.cs
7KB
bin
Debug
ComAssistant.vshost.exe.manifest
490B
ComAssistant.exe
17KB
ComAssistant.pdb
32KB
用户评论