語言

SortedDictionary<TKey,TValue>.Count 屬性

定義

取得包含在 SortedDictionary<TKey,TValue>中的鍵/值對數量。

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

屬性值

包含在 SortedDictionary<TKey,TValue>中的鍵值對數量。

實作

備註

取得此性質的值需進行 O(1) 運算。

適用於