.net array - difference between “Length”, “Count()” and “Rank”

前端 未结 6 2314
时光说笑
时光说笑 2020-12-15 15:19

What\'s the difference between \"Length\", \"Count()\" and \"Rank\" for .net array?

6条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-15 16:14

    Lenght is the size of the array
    Count() is the amount of items in the array (from system.linq)
    Rank returns the numer of dimensions (a[][] = 2, a[] = 1)

提交回复
热议问题