C# Class PluginFramework.AddIn.Utility.XmlConvertor

Afficher le fichier Open project: tianjing/PluginFramework

Méthodes publiques

Méthode 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 méthode

serialize an object to string.
public static ObjectToXml ( object obj ) : string
obj object /// the object. ///
Résultat string

ObjectToXml() public static méthode

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

XmlToObject() public static méthode

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. ///
Résultat object