JsonExSerializer.TypeConversion.DictionaryToListConverter Class Reference

Converts a dictionary of objects to a list. On Deserialization, a property of the value type is used as the key. More...

Inherits JsonExSerializer.TypeConversion.IJsonTypeConverter.

List of all members.

Public Member Functions

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.


Detailed Description

Converts a dictionary of objects to a list. On Deserialization, a property of the value type is used as the key.


Member Function Documentation

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

Implements JsonExSerializer.TypeConversion.IJsonTypeConverter.

object JsonExSerializer.TypeConversion.DictionaryToListConverter.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.DictionaryToListConverter.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.DictionaryToListConverter.Context [set]

Context parameter to control conversion.

Implements JsonExSerializer.TypeConversion.IJsonTypeConverter.


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