我的代码如下:
public void ReadListItem()
{
List<uint> lst = new List<uint>() { 1, 2, 3, 4, 5 };
string str = string.Empty;
foreach (var item in lst)
str = str + item + ",";
str = str.Remove(str.Length - 1);
Console.WriteLine(str);
}
输出:1,2,3,4,5
List<uint>
将转换为逗号分隔字符串的最简单方法是什么?