FastInfoset.NET Class Reference for .NET
ReadAs<T> Method (XmlFastInfosetReader)






The type to which the value read should be converted to.
Reads the value from the current position in the stream as the type specified.
Syntax
'Declaration
 
Public Function ReadAs(Of T)() As T
'Usage
 
Dim instance As XmlFastInfosetReader
Dim value As T
 
value = instance.ReadAs(Of T)()
public T ReadAs<T>()
public function ReadAs(): T; 
public function ReadAs() : T;
public: T* ReadAs<T>(); 
public:
T^ ReadAsgeneric<typename T>
(); 

Type Parameters

T
The type to which the value read should be converted to.

Return Value

The value of the type T read from the stream.
Remarks
If the value in the stream was encoded as a different type, the reader converts it to the required type. For example if the stream contains a binary encoded int value and a double value was requested, the reader will perform an int to double conversion automatically.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

XmlFastInfosetReader Class
XmlFastInfosetReader Members

Send Feedback