list クラス : Count ゲッタ
説明
リストに含まれる要素の数を取得します。
構文
listInstance.Count
引数
無し
返り値
| クラス | 説明 |
| int | リストに含まれる要素の数。 |
サンプルコード
//anyListはlist型のインスタンス.
int number = anyList.Count;
注意
System.Collections.Generic.List<t>.Countのラッパーです。
リストに含まれる要素の数を取得します。
listInstance.Count
無し
| クラス | 説明 |
| int | リストに含まれる要素の数。 |
//anyListはlist型のインスタンス.
int number = anyList.Count;
System.Collections.Generic.List<t>.Countのラッパーです。