LinkedList<T>.Count 屬性

定義

取得在 LinkedList<T> 中實際包含的節點數。

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

屬性值

LinkedList<T> 中實際包含的節點數。

實作

範例

如需包含此屬性的範例,請參閱 類別 LinkedList<T>

備註

擷取這個屬性的值是一種 O(1) 運算。

適用於