如何转换char数组的列表:
1 2 3 4 5 6 7 8
a f z w m y r z
z z z z z z z z
到字符串列表:
1az
2fz
3zz
4wz
5mz
6yz
7rz
8zz
答案 0 :(得分:2)
int length = charArrays.Min(arr => arr.Length);
List<string> stringList = Enumerable.Range(0, length)
.Select(i => String.Concat(charArrays.Select(arr => arr[i])))
.ToList();