JsonExSerializer.Serializer Class Reference

List of all members.

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.

Constructor & Destructor Documentation

JsonExSerializer.Serializer.Serializer ( Type  t  ) 

JsonExSerializer.Serializer.Serializer ( Type  t,
string  configSection 
)

JsonExSerializer.Serializer.Serializer ( Type  t,
SerializationContext  context 
)


Member Function Documentation

static Serializer JsonExSerializer.Serializer.GetSerializer ( Type  t  )  [static]

Gets a serializer for the given type.

Parameters:
t type
Returns:
a serializer

static Serializer JsonExSerializer.Serializer.GetSerializer ( Type  t,
string  configSection 
) [static]

Gets a serializer for the given type.

Parameters:
t type
Returns:
a serializer

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.

Parameters:
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.

Parameters:
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.

Parameters:
o the object to serialize
Returns:
serialized data string

object JsonExSerializer.Serializer.Deserialize ( Stream  stream  ) 

Read the serialized data from the stream and return the deserialized object.

Parameters:
stream stream to read the data from
Returns:
the deserialized object

object JsonExSerializer.Serializer.Deserialize ( TextReader  reader  ) 

Read the serialized data from the reader and return the deserialized object.

Parameters:
reader TextReader to read the data from
Returns:
the deserialized object

object JsonExSerializer.Serializer.Deserialize ( string  input  ) 

Read the serialized data from the input string and return the deserialized object.

Parameters:
input the string containing the serialized data
Returns:
the deserialized object


Property Documentation

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.


Generated on Fri Feb 15 23:33:58 2008 for JsonExSerializer by  doxygen 1.5.2