C# Класс formulate.app.Serialization.HandlersJsonConverter

Handles conversion of JSON to IFormHandler[].
This conversion is necessary to instantiate concrete instances of the IFormHandler interface. By avoiding embedding the full type name in the JSON, we can refactor names of classes without preventing deserialization later.
Наследование: Newtonsoft.Json.JsonConverter
Показать файл Открыть проект

Открытые методы

Метод Описание
CanConvert ( Type objectType ) : bool

Indicates whether or not this class can convert an object of the specified type.

ReadJson ( JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer ) : object

Deserializes JSON into an array of IFormHandler.

WriteJson ( JsonWriter writer, object value, JsonSerializer serializer ) : void

This does nothing (it must be implemented because it is abstract in the base class).

Приватные методы

Метод Описание
InstantiateHandlerByTypeId ( System.Guid typeId ) : IFormHandler

Creates a new instance of a form handler by the handler's type ID.

Описание методов

CanConvert() публичный Метод

Indicates whether or not this class can convert an object of the specified type.
public CanConvert ( Type objectType ) : bool
objectType System.Type
Результат bool

ReadJson() публичный Метод

Deserializes JSON into an array of IFormHandler.
public ReadJson ( JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer ) : object
reader Newtonsoft.Json.JsonReader
objectType System.Type
existingValue object
serializer Newtonsoft.Json.JsonSerializer
Результат object

WriteJson() публичный Метод

This does nothing (it must be implemented because it is abstract in the base class).
public WriteJson ( JsonWriter writer, object value, JsonSerializer serializer ) : void
writer Newtonsoft.Json.JsonWriter
value object
serializer Newtonsoft.Json.JsonSerializer
Результат void