Skip to content

SiloAddressJsonConverter Methods

Newtonsoft.Json.JsonConverter implementation for SiloAddress.

CanConvert(Type)

override
View source
public override bool CanConvert(Type objectType)
Determines whether this instance can convert the specified object type.

Parameters

objectTypeType
Type of the object.

Returns

true if this instance can convert the specified object type; otherwise, false.

ReadJson(JsonReader, Type, object, JsonSerializer)

override
View source
public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer)
Reads the JSON representation of the object.

Parameters

readerJsonReader
The Newtonsoft.Json.JsonReader to read from.
objectTypeType
Type of the object.
existingValueobject
The existing value of object being read.
serializerJsonSerializer
The calling serializer.

Returns

The object value.

WriteJson(JsonWriter, object, JsonSerializer)

override
View source
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
Writes the JSON representation of the object.

Parameters

writerJsonWriter
The Newtonsoft.Json.JsonWriter to write to.
valueobject
The value.
serializerJsonSerializer
The calling serializer.