Spread Windows Forms 17
FarPoint.Win Assembly / FarPoint.Win Namespace / Serializer Class / CreateObjectInstanceAndDeserialize Method / CreateObjectInstanceAndDeserialize(XmlNodeReader,Type,Type,Object) Method
XmlNodeReader from which to read the XML
Type of serialization support
Serialization interface to use
The instantiated object which will receive deserialized data.


In This Topic
    CreateObjectInstanceAndDeserialize(XmlNodeReader,Type,Type,Object) Method
    In This Topic
    Creates an object serialized into a specified XML node reader of a specified type and interface.
    Syntax
    'Declaration
     
    
    Public Overloads Shared Function CreateObjectInstanceAndDeserialize( _
       ByVal r As XmlNodeReader, _
       ByVal type As Type, _
       ByVal saveInterface As Type, _
       ByVal instantiatedObject As Object _
    ) As Object
    'Usage
     
    
    Dim r As XmlNodeReader
    Dim type As Type
    Dim saveInterface As Type
    Dim instantiatedObject As Object
    Dim value As Object
     
    value = Serializer.CreateObjectInstanceAndDeserialize(r, type, saveInterface, instantiatedObject)
    public static object CreateObjectInstanceAndDeserialize( 
       XmlNodeReader r,
       Type type,
       Type saveInterface,
       object instantiatedObject
    )

    Parameters

    r
    XmlNodeReader from which to read the XML
    type
    Type of serialization support
    saveInterface
    Serialization interface to use
    instantiatedObject
    The instantiated object which will receive deserialized data.
    See Also