C# Class PluginFramework.AddIn.Utility.XmlConvertor

Exibir arquivo Open project: tianjing/PluginFramework

Public Methods

Method Description
ObjectToXml ( object obj ) : string

serialize an object to string.

ObjectToXml ( object obj, bool toBeIndented ) : string

serialize an object to string.

XmlToObject ( Type type, string xml ) : object

deserialize string.to an object.

Method Details

ObjectToXml() public static method

serialize an object to string.
public static ObjectToXml ( object obj ) : string
obj object /// the object. ///
return string

ObjectToXml() public static method

serialize an object to string.
public static ObjectToXml ( object obj, bool toBeIndented ) : string
obj object /// the object. ///
toBeIndented bool /// whether to be indented. ///
return string

XmlToObject() public static method

deserialize string.to an object.
public static XmlToObject ( Type type, string xml ) : object
type System.Type /// the type of the object. ///
xml string /// the string need to be deserialized. ///
return object