2013
01-04
01-04
C#中字符串转化为List
字符串转List
这里s的分隔符不是“,”而是“, ”,后面有一个空格
string s = "1, 2, 3";
List<string> list = new List<string>(s.Split(new string[] { ", " }, StringSplitOptions.RemoveEmptyEntries));
foreach (stri.... Read More >