Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Static class: RT.Serialization.ClassifyXml

Summary

Offers a convenient way to use Classify to serialize objects using the XML format.

Static methods

object
Deserialize(Type type, XElement xml, ClassifyOptions options = null, IClassifyFormat<XElement> format = null)
Reconstructs an object of the specified type from the specified serialized form.
T
Deserialize<T>(XElement xml, ClassifyOptions options = null, IClassifyFormat<XElement> format = null)
object
DeserializeFile(Type type, string filename, ClassifyOptions options = null, IClassifyFormat<XElement> format = null)
Reconstructs an object of the specified type from the specified file.
T
DeserializeFile<T>(string filename, ClassifyOptions options = null, IClassifyFormat<XElement> format = null)
void
DeserializeFileIntoObject(string filename, object intoObject, ClassifyOptions options = null, IClassifyFormat<XElement> format = null)
Reconstructs an object from the specified file by applying the values to an existing instance of the desired type. The type of object is inferred from the object passed in.
void
DeserializeIntoObject<T>(XElement xml, T intoObject, ClassifyOptions options = null, IClassifyFormat<XElement> format = null)
Reconstructs an object of the specified type from the specified serialized form by applying the values to an existing instance of the type.
XElement
Serialize(Type saveType, object saveObject, ClassifyOptions options = null, IClassifyFormat<XElement> format = null)
Converts the specified object into a serialized form.
XElement
Serialize<T>(T saveObject, ClassifyOptions options = null, IClassifyFormat<XElement> format = null)
void
SerializeToFile(Type saveType, object saveObject, string filename, ClassifyOptions options = null, IClassifyFormat<XElement> format = null)
Stores the specified object in a file with the given path and filename.
void
SerializeToFile<T>(T saveObject, string filename, ClassifyOptions options = null, IClassifyFormat<XElement> format = null)

Static fields

IClassifyFormat<XElement> Format used when null is passed to methods that take a format. Make sure not to modify this instance if any thread in the application might be in the middle of using ClassifyXml; ideally the options shoud be set once during startup and never changed after that.