You're so close :D
Your variable type needs to match what you put into it. In your case, you're trying to put an object of type string[][] into a variable of type [,], which is two different things.
For your example, the simplest solution would be to change the variable to match the type of object you're putting into it; that is,
- string[][] TDisc = new string[][] { ...
You can verify the contents of your multidimensional array via...
- foreach (string[] arr in TDisc)
-
{
-
foreach (string str in arr)
-
{
-
Console.WriteLine(str);
-
}
-
Console.WriteLine();
-
}
If you want to use a multidimensional array accessed via array[d1, d2, ..., dn] then you need to declare it in that fashion.
I'm not sure which page you were looking at, but it's pretty clearly explained at this MSDN page:
http://msdn.microsoft.com/en-us/libr...8VS.71%29.aspx
Good luck!