The current element of this enumerator.
[Visual Basic] Public ReadOnly Property Current As XmlNode [C#] public XmlNode Current {get;} [C++] public: __property XmlNode* get_Current(); [JScript] public function get Current() : XmlNode;
The current element of this enumerator. The value is null if the enumerator has not yet been advanced to the first element, or if the enumerator has moved past the last element.
An application can perform operations on the current element of an XmlNodeEnumerator without disturbing the enumeration in progress. For example, if an application removes the current element from its parent, the enumerator will still correctly move to the next node when the MoveNext method is invoked.
XmlNodeEnumerator Structure | XmlNodeEnumerator Members | System.Xml Namespace | MoveNext