c# - What is the difference between Rank and specifying [,] in an array? -


in .net, there rank property arrays.

what difference between , specifiying like:

int[,] intarray = new int[3,3]; ?

which of rank 2?

thanks

the rank property read-only. part of type of array , can set when array created. expression int[,] refers type of rank 2 integer arrays, , can create rank 2 array either new int[n,m] syntax or array.createinstance static method.


Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -