Inherits JsonExSerializer.TypeConversion.IJsonTypeConverter.
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. | |
| Type JsonExSerializer.TypeConversion.DictionaryToListConverter.GetSerializedType | ( | Type | sourceType | ) |
| 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.
| item | the item to be converted |
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.
| item |
Implements JsonExSerializer.TypeConversion.IJsonTypeConverter.
object JsonExSerializer.TypeConversion.DictionaryToListConverter.Context [set] |
Context parameter to control conversion.
Implements JsonExSerializer.TypeConversion.IJsonTypeConverter.
1.5.2