Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试转换
string[][] allcats into string[] ToOneArray
请问有什么快速Linq方式的帮助或建议吗?非常感谢
我想将 allcats 的每个元素组合成单个字符串,然后将其映射到一个数组中
试试这个:
var res = allcats.Select(a => string.Join("", a)).ToArray();