我正在尝试转换
string[][] allcats
into
string[] ToOneArray
有什么关于快速 Linq 方式的帮助或建议吗??非常感谢
最佳答案
I want to combine each element of allcats into single string, then map it into one array
试试这个:
var res = allcats.Select(a => string.Join("", a)).ToArray();
关于c# - 数组的数组合并为一个数组 c#,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13619040/