Custom Newtonsoft.Json.JsonConverter
for System.Collections.Generic.Dictionary
.
More...
Inherits JsonConverter.
|
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...
|
|
Custom Newtonsoft.Json.JsonConverter
for System.Collections.Generic.Dictionary
.
override bool CanConvert |
( |
Type |
objectType | ) |
|
Determine if the type is System.Collections.Generic.Dictionary
.
- Parameters
-
objectType | Type 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
-
reader | The Newtonsoft.Json.JsonReader to read from. |
objectType | Type of the object. |
existingValue | The existing value of object being read. |
serializer | The calling serializer. |
- Returns
- The object value.
override void WriteJson |
( |
JsonWriter |
writer, |
|
|
object |
value, |
|
|
JsonSerializer |
serializer |
|
) |
| |
Write as System.Collections.Generic.KeyValuePair
array.
- Parameters
-
writer | The Newtonsoft.Json.JsonWriter to write to. |
value | The value. |
serializer | The calling serializer. |