C# Class Weed.OPS.XDom

显示文件 Open project: noear/Weed3 Class Usage Examples

Public Methods

Method Description
Bind ( object obj, string opsXml ) : void
CDATA ( string xml ) : string

去除代码

Load ( string fileUri ) : XDom

过时的方法,请改用 LoadUri

LoadOps ( string opsXml ) : XDom
LoadUri ( string fileUri ) : XDom
LoadUri ( string fileUri, Encoding encoding ) : XDom
LoadXml ( XmlNode node ) : XDom
LoadXml ( string xml, bool isDoc ) : XDom
ParseXml ( string xml, bool isDoc ) : XmlNode
ToXml ( object obj ) : string

Private Methods

Method Description
GetText ( PropertyInfo prop, object obj ) : string
SetText ( Type objT, object obj, string key, string text ) : void
_GetProp ( Type type, string name ) : PropertyInfo
_GetProps ( Type type ) : IEnumerable

Method Details

Bind() public static method

public static Bind ( object obj, string opsXml ) : void
obj object
opsXml string
return void

CDATA() public static method

去除代码
public static CDATA ( string xml ) : string
xml string
return string

Load() public static method

过时的方法,请改用 LoadUri
public static Load ( string fileUri ) : XDom
fileUri string
return XDom

LoadOps() public static method

public static LoadOps ( string opsXml ) : XDom
opsXml string
return XDom

LoadUri() public static method

public static LoadUri ( string fileUri ) : XDom
fileUri string
return XDom

LoadUri() public static method

public static LoadUri ( string fileUri, Encoding encoding ) : XDom
fileUri string
encoding System.Text.Encoding
return XDom

LoadXml() public static method

public static LoadXml ( XmlNode node ) : XDom
node System.Xml.XmlNode
return XDom

LoadXml() public static method

public static LoadXml ( string xml, bool isDoc ) : XDom
xml string
isDoc bool
return XDom

ParseXml() public static method

public static ParseXml ( string xml, bool isDoc ) : XmlNode
xml string
isDoc bool
return System.Xml.XmlNode

ToXml() public static method

public static ToXml ( object obj ) : string
obj object
return string