Table of Contents

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

XmlableSerializor

Properties

Root

说明

public string Root { get; set; }

Property Value

string

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 XmlElement
o object
doc XmlDocument
match Func<PropertyInfo, object, bool>

IsValid(string, Type)

public bool IsValid(string path, Type type)

Parameters

path string
type Type

Returns

bool

Load(string, object, Func<PropertyInfo, object, bool>)

public object Load(string path, object t, Func<PropertyInfo, object, bool> match = null)

Parameters

path string
t object
match Func<PropertyInfo, object, bool>

Returns

object

Load(string, Type, Func<PropertyInfo, object, bool>)

public object Load(string path, Type type, Func<PropertyInfo, object, bool> match)

Parameters

path string
type Type
match Func<PropertyInfo, object, bool>

Returns

object

Load(XmlDocument, object, Func<PropertyInfo, object, bool>)

public object Load(XmlDocument xmldoc, object t, Func<PropertyInfo, object, bool> match = null)

Parameters

xmldoc XmlDocument
t object
match Func<PropertyInfo, object, bool>

Returns

object

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 string
match 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

path string
obj object
match Func<PropertyInfo, object, bool>

SaveAs(object, Func<PropertyInfo, object, bool>)

public XmlDocument SaveAs(object obj, Func<PropertyInfo, object, bool> match = null)

Parameters

obj object
match Func<PropertyInfo, object, bool>

Returns

XmlDocument

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 XmlElement
o object
n string
doc XmlDocument
match Func<PropertyInfo, object, bool>
useNew bool

XmlClone(object)

public object XmlClone(object obj)

Parameters

obj object

Returns

object