I have this code:
string[,] folders;
folders = new string[,] { Directory.GetLogicalDrives() , Directory.GetLogicalDrives() };
Error: A nested array initializer is expected
How can i fix it? i tryed everything…
Notice: I cannot combine the two lines of code from above
I think you want array of arrays, not multidimensional array:
The reason is size of results of the GetLogicalDrives calls does not have to match and only known at moment of execution of each call.