Table of Contents

Class DictionaryObjectConverter

Namespace
Steeltoe.Discovery.Eureka.Util
Assembly
Steeltoe.Discovery.EurekaBase.dll
public class DictionaryObjectConverter : CustomCreationConverter<IDictionary<string, object>>
Inheritance
JsonConverter
CustomCreationConverter<IDictionary<string, object>>
DictionaryObjectConverter
Inherited Members
CustomCreationConverter<IDictionary<string, object>>.CanWrite
JsonConverter.CanRead
JsonConverter.CanWrite

Methods

CanConvert(Type)

Determines whether this instance can convert the specified object type.

public override bool CanConvert(Type objectType)

Parameters

objectType Type

Type of the object.

Returns

bool

true if 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

objectType Type

Type 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

reader JsonReader

The Newtonsoft.Json.JsonReader to read from.

objectType Type

Type of the object.

existingValue object

The existing value of object being read.

serializer JsonSerializer

The calling serializer.

Returns

object

The object value.