Syntax question

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.
 
F

Family Tree Mike

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top