我想将一个整数数组或列表转换成逗号分隔的字符串,就像这样:
string myFunction(List<int> a) {
return string.Join(",", a);
}
但是string.Join只接受List<string>
作为第二个参数。最好的方法是什么?