Public Member Functions | |
| Serializer (Type t) | |
| Serializer (Type t, string configSection) | |
| Serializer (Type t, SerializationContext context) | |
| void | Serialize (object o, Stream stream) |
| Serialize the object and write the data to the stream parameter. | |
| void | Serialize (object o, TextWriter writer) |
| Serialize the object and write the data to the writer parameter. The caller is expected to close the writer when done. | |
| string | Serialize (object o) |
| Serialize the object and return the serialized data as a string. | |
| object | Deserialize (Stream stream) |
| Read the serialized data from the stream and return the deserialized object. | |
| object | Deserialize (TextReader reader) |
| Read the serialized data from the reader and return the deserialized object. | |
| object | Deserialize (string input) |
| Read the serialized data from the input string and return the deserialized object. | |
Static Public Member Functions | |
| static Serializer | GetSerializer (Type t) |
| Gets a serializer for the given type. | |
| static Serializer | GetSerializer (Type t, string configSection) |
| Gets a serializer for the given type. | |
| static Serializer | GetSerializer (Type t, SerializationContext context) |
Properties | |
| SerializationContext | Context [get] |
| The Serialization context for this serializer. The SerializationContext contains options for serializing as well as serializer helper classes such as TypeConverters and CollectionHandlers. | |
| JsonExSerializer.Serializer.Serializer | ( | Type | t | ) |
| JsonExSerializer.Serializer.Serializer | ( | Type | t, | |
| string | configSection | |||
| ) |
| JsonExSerializer.Serializer.Serializer | ( | Type | t, | |
| SerializationContext | context | |||
| ) |
| static Serializer JsonExSerializer.Serializer.GetSerializer | ( | Type | t | ) | [static] |
Gets a serializer for the given type.
| t | type |
| static Serializer JsonExSerializer.Serializer.GetSerializer | ( | Type | t, | |
| string | configSection | |||
| ) | [static] |
Gets a serializer for the given type.
| t | type |
| static Serializer JsonExSerializer.Serializer.GetSerializer | ( | Type | t, | |
| SerializationContext | context | |||
| ) | [static] |
| void JsonExSerializer.Serializer.Serialize | ( | object | o, | |
| Stream | stream | |||
| ) |
Serialize the object and write the data to the stream parameter.
| o | the object to serialize | |
| stream | stream for the serialized data |
| void JsonExSerializer.Serializer.Serialize | ( | object | o, | |
| TextWriter | writer | |||
| ) |
Serialize the object and write the data to the writer parameter. The caller is expected to close the writer when done.
| o | the object to serialize | |
| writer | writer for the serialized data |
| string JsonExSerializer.Serializer.Serialize | ( | object | o | ) |
Serialize the object and return the serialized data as a string.
| o | the object to serialize |
| object JsonExSerializer.Serializer.Deserialize | ( | Stream | stream | ) |
Read the serialized data from the stream and return the deserialized object.
| stream | stream to read the data from |
| object JsonExSerializer.Serializer.Deserialize | ( | TextReader | reader | ) |
Read the serialized data from the reader and return the deserialized object.
| reader | TextReader to read the data from |
| object JsonExSerializer.Serializer.Deserialize | ( | string | input | ) |
Read the serialized data from the input string and return the deserialized object.
| input | the string containing the serialized data |
SerializationContext JsonExSerializer.Serializer.Context [get] |
The Serialization context for this serializer. The SerializationContext contains options for serializing as well as serializer helper classes such as TypeConverters and CollectionHandlers.
1.5.2