Dictionary<TKey,TValue>.KeyCollection.Count 属性
定义
获取 Dictionary<TKey,TValue>.KeyCollection 中包含的元素数。Gets the number of elements contained in the 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 中包含的元素数。The number of elements contained in the Dictionary<TKey,TValue>.KeyCollection.
检索此属性的值的运算复杂度为 O(1)。Retrieving the value of this property is an O(1) operation.