JsonExSerializer.TypeConversion.ChainedConverter Class Reference

Type converter that wraps multiple converters. Used when multiple JsonConvert attributes are specified on an element. More...

Inherits JsonExSerializer.TypeConversion.IJsonTypeConverter.

List of all members.

Public Member Functions

 ChainedConverter ()
Type GetSerializedType (Type sourceType)
object ConvertFrom (object item, SerializationContext serializationContext)
 This method is called before serialization. The item parameter should be converted to a type suitable for serialization and returned.
object ConvertTo (object item, Type sourceType, SerializationContext serializationContext)
 This method will be called upon deserialization. The item returned from ConvertFrom on serialization will be passed as the item parameter. This object should be converted back to the desired type and returned.

Properties

object Context [set]
 Context parameter to control conversion.
List< IJsonTypeConverterConverters [get]
 The list of type converters for this instance.


Detailed Description

Type converter that wraps multiple converters. Used when multiple JsonConvert attributes are specified on an element.


Constructor & Destructor Documentation

JsonExSerializer.TypeConversion.ChainedConverter.ChainedConverter (  ) 


Member Function Documentation

Type JsonExSerializer.TypeConversion.ChainedConverter.GetSerializedType ( Type  sourceType  ) 

Implements JsonExSerializer.TypeConversion.IJsonTypeConverter.

object JsonExSerializer.TypeConversion.ChainedConverter.ConvertFrom ( object  item,
SerializationContext  serializationContext 
)

This method is called before serialization. The item parameter should be converted to a type suitable for serialization and returned.

Parameters:
item the item to be converted
Returns:
the converted item to be serialized

Implements JsonExSerializer.TypeConversion.IJsonTypeConverter.

object JsonExSerializer.TypeConversion.ChainedConverter.ConvertTo ( object  item,
Type  sourceType,
SerializationContext  serializationContext 
)

This method will be called upon deserialization. The item returned from ConvertFrom on serialization will be passed as the item parameter. This object should be converted back to the desired type and returned.

Parameters:
item 
Returns:
the desired object

Implements JsonExSerializer.TypeConversion.IJsonTypeConverter.


Property Documentation

object JsonExSerializer.TypeConversion.ChainedConverter.Context [set]

Context parameter to control conversion.

Implements JsonExSerializer.TypeConversion.IJsonTypeConverter.

List<IJsonTypeConverter> JsonExSerializer.TypeConversion.ChainedConverter.Converters [get]

The list of type converters for this instance.


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