Click or drag to resize

XmlExtensionMethodsReadNext Method

Reads the next element. This routine is similar to Read() but it returns false on EOF and when reader is on an end element and the element isn't an empty element. Read() only returns false when it's hit EOF. Use this on a reader created with GetSubtreeReader.

Namespace:  SD.LLBLGen.Pro.ORMSupportClasses
Assembly:  SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.6.0.0 (5.6.19.0117)
Syntax
public static bool ReadNext(
	this XmlReader reader
)

Parameters

reader
Type: System.XmlXmlReader
The reader.

Return Value

Type: Boolean
true if there are elements left to read, false if EOF is reached or the reader is positioned on an end element which isn't an empty element.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type XmlReader. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also