ExtensionMethodsPrepareReaderForFirstRead Method |
Prepares the reader for first read. This means that if the reader is in the initial state, a Read is executed. If the first read then sees an
XML declaration, it's skipped as well
Namespace:
SD.LLBLGen.Pro.Core.Xml
Assembly:
SD.LLBLGen.Pro.Core (in SD.LLBLGen.Pro.Core.dll) Version: 5.7.0.0 (5.7.0)
Syntax public static bool PrepareReaderForFirstRead(
this XmlReader reader
)
<ExtensionAttribute>
Public Shared Function PrepareReaderForFirstRead (
reader As XmlReader
) As Boolean
Parameters
- reader
- Type: System.XmlXmlReader
The reader.
Return Value
Type:
BooleanUsage 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