Dictionary<TKey,TValue>.KeyCollection.Count プロパティ

定義

Dictionary<TKey,TValue>.KeyCollection に格納されている要素の数を取得します。

public:
 property int Count { int get(); };
public int Count { get; }
member this.Count : int
Public ReadOnly Property Count As Integer

プロパティ値

Dictionary<TKey,TValue>.KeyCollection に格納されている要素の数。

このプロパティ値を取得することは、O(1) 操作になります。

実装

適用対象