T
The value of the specified type.
Noemax FastInfoset.NET Report an issue | Discuss in forums
XmlFastInfosetReader.ReadElementContentAs<T>() Method
See Also 
Noemax.FastInfoset Assembly > Noemax.FastInfoset Namespace > XmlFastInfosetReader Class > ReadElementContentAs Method : Generic ReadElementContentAs() Method



Reads the current element and returns the content as the a value of the type specified.


Namespace: Noemax.FastInfoset
Assembly: Noemax.FastInfoset (in Noemax.FastInfoset.dll)

Syntax

Visual Basic (Declaration) 
Overloads Public Function ReadElementContentAs(Of T)() As T
Visual Basic (Usage)Copy Code
Dim instance As XmlFastInfosetReader
Dim value As T
 
value = instance.ReadElementContentAs(Of T)()
C# 
public T ReadElementContentAs<T>()
C++/CLI 
public:
T ReadElementContentAsgeneric<typename T>
(); 

Type Parameters

T
The value of the specified type.

Return Value

The value of the specified type.

Remarks

This method reads the start tag, the content of the element, and moves the reader past the end element tag. It expands entities and ignores processing instructions and comments. The element can only contain simple content. That is, it cannot have child elements.

Version Information

.NET Framework

Supported in: 3.5, 3.0, 2.0

.NET Compact Framework

Supported in: 3.5, 2.0

See Also