Syntax question

  • Thread starter Thread starter Trevor
  • Start date Start date
T

Trevor

I have encountered this line of C# code today:

string[,] m_defaultValues;

What does this syntax "string[,]" mean and how is it different from the
normal "string[]" array syntax ? I don't understand what the comma is
accomplishing.
 
Trevor said:
I have encountered this line of C# code today:

string[,] m_defaultValues;

What does this syntax "string[,]" mean and how is it different from the
normal "string[]" array syntax ? I don't understand what the comma is
accomplishing.


A two dimensional array.
 
Back
Top