Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.Utility Namespace / XmlUtility Class / Deserialize Method
The XML that should be made into an object.
Type of object that produced the XML.
Example
In This Topic
    Deserialize Method
    In This Topic
    Makes an object out of the specified XML.
    Syntax
    public static object Deserialize( 
       string xml,
       Type thisType
    )

    Parameters

    xml
    The XML that should be made into an object.
    thisType
    Type of object that produced the XML.

    Return Value

    The reconstituted object.
    Example
    Car MyCar1 = new Car();
    byte[] CarBytes = XmlUtility.Serialize(MyCar1);
    string CarXml = XmlUtility.Utf8BytesToString(CarBytes);
    Car MyCar2 = (Car) Deserialize(CarXml, typeof(Car));
    // MyCar2 is now a copy of MyCar1.
    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