Mono Class Library: System.Xml.XPath.XPathNodeIterator Overview | Members

System.Xml.XPath.XPathNodeIterator.Count Property

Returns the total cound of this node iterator.

public virtual int Count { get; }

Value

An integer value that represents the total count of the nodes.

Remarks

Since this class does not hold all the nodes but just holds current node information and the way to get following nodes in this iterator, to count the total number of the nodes it have to clone itself and count all the nodes up in the clone. Thus, reference to this property might lead to heavy performance loss.

Requirements

Namespace: System.Xml.XPath
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0