Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Static class: RT.Serialization.ClassifyJson

Summary

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

Static methods

object
Deserialize(Type type, string json, ClassifyOptions options = null, IClassifyFormat<JsonValue> format = null)
Reconstructs an object of the specified type from the specified serialized form.
object
Deserialize(Type type, JsonValue json, ClassifyOptions options = null, IClassifyFormat<JsonValue> format = null)
T
Deserialize<T>(string json, ClassifyOptions options = null, IClassifyFormat<JsonValue> format = null)
T
Deserialize<T>(JsonValue json, ClassifyOptions options = null, IClassifyFormat<JsonValue> format = null)
object
DeserializeFile(Type type, string filename, ClassifyOptions options = null, IClassifyFormat<JsonValue> format = null)
Reconstructs an object of the specified type from the specified file.
T
DeserializeFile<T>(string filename, ClassifyOptions options = null, IClassifyFormat<JsonValue> format = null)
void
DeserializeFileIntoObject(string filename, object intoObject, ClassifyOptions options = null, IClassifyFormat<JsonValue> 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>(string json, T intoObject, ClassifyOptions options = null, IClassifyFormat<JsonValue> 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.
void
DeserializeIntoObject<T>(JsonValue json, T intoObject, ClassifyOptions options = null, IClassifyFormat<JsonValue> format = null)
JsonValue
Serialize(Type saveType, object saveObject, ClassifyOptions options = null, IClassifyFormat<JsonValue> format = null)
Converts the specified object into a serialized form.
JsonValue
Serialize<T>(T saveObject, ClassifyOptions options = null, IClassifyFormat<JsonValue> format = null)
void
SerializeToFile(Type saveType, object saveObject, string filename, ClassifyOptions options = null, IClassifyFormat<JsonValue> 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<JsonValue> format = null)

Static fields

IClassifyFormat<JsonValue> 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 ClassifyJson; ideally the options shoud be set once during startup and never changed after that.