I'm trying to convert
string[][] allcats
into
string[] ToOneArray
Can any help or suggestion for fast Linq way please ?? many Thanks
I want to combine each element of allcats into single string, then map it into one array
Try this:
var res = allcats.Select(a => string.Join("", a)).ToArray();
string[]. You can use string.Join to make everything into single string.