ValueWrapperJsonConverter<T, V>
Namespace: Shadop.Archmage.Sdk
JSON converter for value wrapper structs that hold a single value.
public abstract class ValueWrapperJsonConverter<T, V>Type Parameters
Section titled “Type Parameters”T
The value wrapper struct type.
V
The underlying value type.
Inheritance Object → JsonConverter → JsonConverter
Properties
Section titled “Properties”CanRead
Section titled “CanRead”public bool CanRead { get; }Property Value
Section titled “Property Value”CanWrite
Section titled “CanWrite”public bool CanWrite { get; }Property Value
Section titled “Property Value”Constructors
Section titled “Constructors”ValueWrapperJsonConverter()
Section titled “ValueWrapperJsonConverter()”protected ValueWrapperJsonConverter()Methods
Section titled “Methods”Create(V)
Section titled “Create(V)”protected abstract T Create(V value)Parameters
Section titled “Parameters”value V
Returns
Section titled “Returns”T
GetValue(T)
Section titled “GetValue(T)”protected abstract V GetValue(T obj)Parameters
Section titled “Parameters”obj T
Returns
Section titled “Returns”V
ReadJson(JsonReader, Type, T, Boolean, JsonSerializer)
Section titled “ReadJson(JsonReader, Type, T, Boolean, JsonSerializer)”public T ReadJson(JsonReader reader, Type objectType, T existingValue, bool hasExistingValue, JsonSerializer serializer)Parameters
Section titled “Parameters”reader JsonReader
objectType Type
existingValue T
hasExistingValue Boolean
serializer JsonSerializer
Returns
Section titled “Returns”T
WriteJson(JsonWriter, T, JsonSerializer)
Section titled “WriteJson(JsonWriter, T, JsonSerializer)”public void WriteJson(JsonWriter writer, T value, JsonSerializer serializer)Parameters
Section titled “Parameters”writer JsonWriter
value T
serializer JsonSerializer