//整形分割
int[] Ids = Array.ConvertAll(IdList.Split(','), s => int.Parse(s));
//字符串分割
string[] Names = NameList.Split(',');
//分割标识为字符串,而不是字符
//需要分割的字符串
string test ="需要分割的字符串";
string cutStr ="分割";
string result = test .Split(new string[] { cutStr }, StringSplitOptions.RemoveEmptyEntries);
得到的结果result 为“的字符串”
`