Class DictionaryObjectConverter
public class DictionaryObjectConverter : CustomCreationConverter<IDictionary<string, object>>
- Inheritance
-
JsonConverterDictionaryObjectConverter
- Inherited Members
-
CustomCreationConverter<IDictionary<string, object>>.CanWriteJsonConverter.CanReadJsonConverter.CanWrite
Methods
CanConvert(Type)
Determines whether this instance can convert the specified object type.
public override bool CanConvert(Type objectType)
Parameters
objectTypeTypeType of the object.
Returns
- bool
trueif this instance can convert the specified object type; otherwise,false.
Create(Type)
Creates an object which will then be populated by the serializer.
public override IDictionary<string, object> Create(Type objectType)
Parameters
objectTypeTypeType of the object.
Returns
- IDictionary<string, object>
The created object.
ReadJson(JsonReader, Type, object, JsonSerializer)
Reads the JSON representation of the object.
public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer)
Parameters
readerJsonReaderThe Newtonsoft.Json.JsonReader to read from.
objectTypeTypeType of the object.
existingValueobjectThe existing value of object being read.
serializerJsonSerializerThe calling serializer.
Returns
- object
The object value.