Show / Hide Table of Contents

Class IdentifierConverter

Provides support for converting IdentifierTriples to and from JSON.

Inheritance
Object
Newtonsoft.Json.JsonConverter
IdentifierConverter
Inherited Members
Newtonsoft.Json.JsonConverter.CanRead
Newtonsoft.Json.JsonConverter.CanWrite
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Namespace: Algenta.Colectica.Model.Ddi.Utility
Assembly: Algenta.Colectica.Model.Ddi.dll
Syntax
public class IdentifierConverter : JsonConverter

Methods

CanConvert(Type)

Determines whether this instance can convert the specified object type.

Declaration
public override bool CanConvert(Type objectType)
Parameters
Type Name Description
Type objectType

Type of the object.

Returns
Type Description
Boolean

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

Overrides
Newtonsoft.Json.JsonConverter.CanConvert(System.Type)

ReadJson(JsonReader, Type, Object, JsonSerializer)

Reads the JSON representation of the object.

Declaration
public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer)
Parameters
Type Name Description
Newtonsoft.Json.JsonReader reader

The Newtonsoft.Json.JsonReader to read from.

Type objectType

Type of the object: should be either IdentifierTriple or TypedIdTriple.

Object existingValue

The existing value of object being read.

Newtonsoft.Json.JsonSerializer serializer

The calling serializer.

Returns
Type Description
Object

The object value.

Overrides
Newtonsoft.Json.JsonConverter.ReadJson(Newtonsoft.Json.JsonReader, System.Type, System.Object, Newtonsoft.Json.JsonSerializer)

WriteJson(JsonWriter, Object, JsonSerializer)

Writes the JSON representation of the identifier.

Declaration
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
Parameters
Type Name Description
Newtonsoft.Json.JsonWriter writer

The Newtonsoft.Json.JsonWriter to write to.

Object value

The IdentifierTriple or TypedIdTriple to convert.

Newtonsoft.Json.JsonSerializer serializer

The calling serializer.

Overrides
Newtonsoft.Json.JsonConverter.WriteJson(Newtonsoft.Json.JsonWriter, System.Object, Newtonsoft.Json.JsonSerializer)
In This Article
Back to top Generated by DocFX