List<string> to 指定分隔符 字符串

List<int> data = ..;

 var result = string.Join(";", data); // (.NET 4.0 only) 

var result = string.Join(";", data.Select(x => x.ToString()).ToArray()); // (.NET 3.5)

 

posted @ 2018-08-30 14:16  qishidz  阅读(316)  评论(0编辑  收藏  举报