語言

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) 運算。

適用於