List转字符串,用逗号隔开
List<string> list = new List<string>();
list.Add("a");
list.Add("b");
list.Add("c");
string s = string.Join(",", list.ToArray());
MessageBox.Show(s);
string[]转list<long>
private List<long> ConvetDataType(string sourceData)
{
List<long> list = new List<long>();
list = sourceData.Split(',').ToList().ConvertAll(s => long.Parse(s));
return list;
}