What does it mean when there is a comma inside an array declaration? e.g. float[,]

前端 未结 4 527
情歌与酒
情歌与酒 2020-12-10 00:14

I have some code I\'m trying to understand while learning C#. I do not understand what I even need to search Google for to get here, but the code is as follows:

<         


        
相关标签:
4条回答
  • 2020-12-10 00:48

    It means it is a multidimensional array.

    See MSDN.

    0 讨论(0)
  • 2020-12-10 00:55

    That the array is multi-dimensional - two-dimensional in your case.

    0 讨论(0)
  • 2020-12-10 00:56

    That would be a two-dimensional array. You can also specify more dimensions:

    Multidimensional Arrays (C# Programming Guide)

    0 讨论(0)
  • 2020-12-10 00:56

    Each comma adds an additional dimension to the array [,] = 2 dimensional [,,] = 3 dimensional ...

    0 讨论(0)
提交回复
热议问题