标签:
string str = "1,11,121,131"; var arr = str.Split(‘,‘); List<string> list = new List<string>(); list.AddRange(arr); if(list.Contains("11")) { Console.WriteLine("11"); }
c# string 数组转 list
原文地址:http://www.cnblogs.com/runliuv/p/5382441.html