Table of Contents

MoveToFirstElement Method

Definition

Namespace
Cuemon.Xml
Assemblies
Cuemon.Xml.dll
Source
src/Cuemon.Xml/Extensions/XmlReaderDecoratorExtensions.cs

MoveToFirstElement(IDecorator<XmlReader>)

Moves the enclosed XmlReader of the specified decorator to the first element.

public static bool MoveToFirstElement(this IDecorator<XmlReader> decorator)

Parameters

decorator IDecorator<XmlReader>

The IDecorator<T> to extend.

Returns

bool

true if an element exists (the reader moves to the first element), otherwise, false (the reader has reached EOF).

Exceptions

ArgumentNullException

decorator is null.

ArgumentException

The Read() method of the enclosed XmlReader of the specified decorator object has already been called.