C# 클래스 PluginFramework.AddIn.Utility.XmlConvertor

파일 보기 프로젝트 열기: tianjing/PluginFramework

공개 메소드들

메소드 설명
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.

메소드 상세

ObjectToXml() 공개 정적인 메소드

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

ObjectToXml() 공개 정적인 메소드

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

XmlToObject() 공개 정적인 메소드

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. ///
리턴 object