Wanzyee Studio

Custom Newtonsoft.Json.JsonConverter for System.Collections.Generic.Dictionary. More...

Inherits JsonConverter.

Public Member Functions

override bool CanConvert (Type objectType)
 Determine if the type is System.Collections.Generic.Dictionary. More...
 
override object ReadJson (JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer)
 Read as System.Collections.Generic.KeyValuePair array to rebuild a dictionary. More...
 
override void WriteJson (JsonWriter writer, object value, JsonSerializer serializer)
 Write as System.Collections.Generic.KeyValuePair array. More...
 

Detailed Description

Custom Newtonsoft.Json.JsonConverter for System.Collections.Generic.Dictionary.

Member Function Documentation

override bool CanConvert ( Type  objectType)

Determine if the type is System.Collections.Generic.Dictionary.

Parameters
objectTypeType of the object.
Returns
true if this can convert the specified type; otherwise, false.
override object ReadJson ( JsonReader  reader,
Type  objectType,
object  existingValue,
JsonSerializer  serializer 
)

Read as System.Collections.Generic.KeyValuePair array to rebuild a dictionary.

Parameters
readerThe Newtonsoft.Json.JsonReader to read from.
objectTypeType of the object.
existingValueThe existing value of object being read.
serializerThe calling serializer.
Returns
The object value.
override void WriteJson ( JsonWriter  writer,
object  value,
JsonSerializer  serializer 
)

Write as System.Collections.Generic.KeyValuePair array.

Parameters
writerThe Newtonsoft.Json.JsonWriter to write to.
valueThe value.
serializerThe calling serializer.