IGLib 1.4
The IGLib base library for development of numerical, technical and business applications.
|
Helper class for JSON serialization and deserialization. This class does not enable formatting of the generated JSON (no indentation etc.). More...
Public Member Functions | |
SerializerJsonBase () | |
Creates a JSON serialization class. | |
override void | Serialize< T > (T serializedObject, Stream serializationStream) |
Serializes the specified object and outputs it to a stream. | |
override T | Deserialize< T > (Stream deserializationStream) |
Deserializes an object from the specified stream containing JSON representation of the object. Deserialized object is instantiated and returned. | |
Properties | |
static SerializerJsonBase | Global [get] |
Gets a global helper object for JSON serialization. | |
Static Private Attributes | |
static SerializerJsonBase | _global = new SerializerJsonBase() |
Helper class for JSON serialization and deserialization. This class does not enable formatting of the generated JSON (no indentation etc.).
$A Igor jun09;
IG::Lib::SerializerJsonBase::SerializerJsonBase | ( | ) | [inline] |
Creates a JSON serialization class.
override void IG::Lib::SerializerJsonBase::Serialize< T > | ( | T | serializedObject, |
Stream | serializationStream | ||
) | [inline] |
Serializes the specified object and outputs it to a stream.
T | Type of the object to be serialized. |
serializedObject | Object to be serialized. |
serializationStream | Stream on which the serialized object is output. |
Implements IG::Lib::ISerializer.
Reimplemented in IG::Lib::SerializerJson.
override T IG::Lib::SerializerJsonBase::Deserialize< T > | ( | Stream | deserializationStream | ) | [inline] |
Deserializes an object from the specified stream containing JSON representation of the object. Deserialized object is instantiated and returned.
T | Type of the deserialized object. |
deserializationStream | Stream from which object is deserialized. |
Implements IG::Lib::ISerializer.
SerializerJsonBase IG::Lib::SerializerJsonBase::_global = new SerializerJsonBase() [static, private] |
Reimplemented in IG::Lib::SerializerJson.
SerializerJsonBase IG::Lib::SerializerJsonBase::Global [static, get] |
Gets a global helper object for JSON serialization.
Reimplemented in IG::Lib::SerializerJson.