Liquid XML Data Binder 2020
LiquidTechnologies.XmlObjects Namespace / LxSerializer<T> Class / Deserialize Method / Deserialize(TextReader,LxReaderSettings) Method
The System.IO.TextReader to read the xml data from
A settings to control how the data is de-serialized

In This Topic
    Deserialize(TextReader,LxReaderSettings) Method
    In This Topic
    De-serializes an XML document, creating a class populated with the data from the XmlReader. Creates an instance of T from the data in the xmlReader
    Syntax
    'Declaration
     
    
    Public Overloads Function Deserialize( _
       ByVal textReader As System.IO.TextReader, _
       Optional ByVal settings As LxReaderSettings _
    ) As T
    public T Deserialize( 
       System.IO.TextReader textReader,
       LxReaderSettings settings
    )

    Parameters

    textReader
    The System.IO.TextReader to read the xml data from
    settings
    A settings to control how the data is de-serialized

    Return Value

    The de-serialized objectA new instance of T loaded with data from the xmlReader
    Exceptions
    ExceptionDescription
    General errors
    If the object created from the XML Data is not castable to the type in T (this is typically the case if an the XML file contains the wrong root element for T).
    General errors
    Requirements

    Target Platforms: Windows 10, Windows 8, Windows 7, Windows Vista, Windows Server 2016, Windows Server 2012, Windows Server 2008. Please ensure you have the latest Service Pack for your operating system installed.

    See Also