1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

[C#] 配列の長さを取得する

Last updated at Posted at 2018-02-03

new string[10, 2]

以下の配列になる(値をxとする)
x,x
x,x
x,x
x,x
x,x
x,x
x,x
x,x
x,x
x,x

Row(行)=10 , Column(列)=2

10が欲しいなら array.GetLength(0) -> 10
2が欲しいなら array.GetLength(1) -> 2
要素数が欲しいなら array.Length -> 20

1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?