Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • 1
    This question is asked more than 11 years ago and it has an accepted answer. Please add some details about the reason you are adding a new answer Commented Nov 29, 2022 at 20:19
  • I was trying to create a multi-dimension array and retrieve a specified value like the one below, however when I attempted using the syntax provided by Microsoft in link VS gave me a syntax error. In an effort to aid someone in the future, I posted to this question. int[,] array2Da = new int[4, 2] { { 1, 2 }, { 3, 4 }, { 5, 6 }, { 7, 8 } }; Console.WriteLine(array2Da[1][1]); //error => array2Da is not null here Commented Dec 14, 2022 at 10:47