Class XmlableSerializor
- Namespace
- HeBianGu.Systems.XmlSerialize
- Assembly
- HeBianGu.Systems.XmlSerialize.dll
public class XmlableSerializor
- Inheritance
-
XmlableSerializor
- Inherited Members
- Extension Methods
Fields
Instance
public static XmlableSerializor Instance
Field Value
Properties
Root
说明
public string Root { get; set; }
Property Value
Methods
FromXml(XmlElement, object, XmlDocument, Func<PropertyInfo, object, bool>)
public void FromXml(XmlElement e, object o, XmlDocument doc, Func<PropertyInfo, object, bool> match = null)
Parameters
e
XmlElemento
objectdoc
XmlDocumentmatch
Func<PropertyInfo, object, bool>
IsValid(string, Type)
public bool IsValid(string path, Type type)
Parameters
Returns
Load(string, object, Func<PropertyInfo, object, bool>)
public object Load(string path, object t, Func<PropertyInfo, object, bool> match = null)
Parameters
Returns
Load(string, Type, Func<PropertyInfo, object, bool>)
public object Load(string path, Type type, Func<PropertyInfo, object, bool> match)
Parameters
Returns
Load(XmlDocument, object, Func<PropertyInfo, object, bool>)
public object Load(XmlDocument xmldoc, object t, Func<PropertyInfo, object, bool> match = null)
Parameters
xmldoc
XmlDocumentt
objectmatch
Func<PropertyInfo, object, bool>
Returns
Load<T>(string, Func<PropertyInfo, object, bool>)
public T Load<T>(string path, Func<PropertyInfo, object, bool> match = null) where T : class, new()
Parameters
path
stringmatch
Func<PropertyInfo, object, bool>
Returns
- T
Type Parameters
T
Save(string, object, Func<PropertyInfo, object, bool>)
public void Save(string path, object obj, Func<PropertyInfo, object, bool> match = null)
Parameters
SaveAs(object, Func<PropertyInfo, object, bool>)
public XmlDocument SaveAs(object obj, Func<PropertyInfo, object, bool> match = null)
Parameters
obj
objectmatch
Func<PropertyInfo, object, bool>
Returns
ToXml(XmlElement, object, string, XmlDocument, Func<PropertyInfo, object, bool>, bool)
public void ToXml(XmlElement e, object o, string n, XmlDocument doc, Func<PropertyInfo, object, bool> match = null, bool useNew = true)
Parameters
e
XmlElemento
objectn
stringdoc
XmlDocumentmatch
Func<PropertyInfo, object, bool>useNew
bool
XmlClone(object)
public object XmlClone(object obj)
Parameters
obj
object