资源介绍
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;
}
- 上一篇: 串口调试助手源码(绝对正版)
- 下一篇: 串口调试助手源代码(详细中文注释)