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) 操作。

适用于