MoveToFirstElement Method
Definition
- Assemblies
- Cuemon.Xml.dll
MoveToFirstElement(IDecorator<XmlReader>)
Moves the enclosed XmlReader of the specified decorator to the first element.
public static bool MoveToFirstElement(this IDecorator<XmlReader> decorator)
Parameters
decoratorIDecorator<XmlReader>The IDecorator<T> to extend.
Returns
- bool
trueif an element exists (the reader moves to the first element), otherwise,false(the reader has reached EOF).
Exceptions
- ArgumentNullException
decoratoris null.- ArgumentException
The Read() method of the enclosed XmlReader of the specified
decoratorobject has already been called.