ComplexDictionaryConverter<T, V>
Namespace: Murder.Serialization
Assembly: Murder.dll
public sealed class ComplexDictionaryConverter<T, V> : JsonConverter<T>
Implements: JsonConverter<T>
⭐ Constructors
public ComplexDictionaryConverter<T, V>()
⭐ Properties
HandleNull
public virtual bool HandleNull { get; }
Returns
bool
Type
public virtual Type Type { get; }
Returns
Type
⭐ Methods
CanConvert(Type)
public virtual bool CanConvert(Type typeToConvert)
Parameters
typeToConvert
Type
Returns
bool
Read(Utf8JsonReader&, Type, JsonSerializerOptions)
public virtual ComplexDictionary<TKey, TValue> Read(Utf8JsonReader& reader, Type typeToConvert, JsonSerializerOptions options)
Parameters
reader
Utf8JsonReader&
typeToConvert
Type
options
JsonSerializerOptions
Returns
ComplexDictionary<TKey, TValue>
ReadAsPropertyName(Utf8JsonReader&, Type, JsonSerializerOptions)
public virtual ComplexDictionary<TKey, TValue> ReadAsPropertyName(Utf8JsonReader& reader, Type typeToConvert, JsonSerializerOptions options)
Parameters
reader
Utf8JsonReader&
typeToConvert
Type
options
JsonSerializerOptions
Returns
ComplexDictionary<TKey, TValue>
Write(Utf8JsonWriter, ComplexDictionary<TKey, TValue>, JsonSerializerOptions)
public virtual void Write(Utf8JsonWriter writer, ComplexDictionary<TKey, TValue> dictionary, JsonSerializerOptions options)
Parameters
writer
Utf8JsonWriter
dictionary
ComplexDictionary<TKey, TValue>
options
JsonSerializerOptions
WriteAsPropertyName(Utf8JsonWriter, ComplexDictionary<TKey, TValue>, JsonSerializerOptions)
public virtual void WriteAsPropertyName(Utf8JsonWriter writer, ComplexDictionary<TKey, TValue> value, JsonSerializerOptions options)
Parameters
writer
Utf8JsonWriter
value
ComplexDictionary<TKey, TValue>
options
JsonSerializerOptions
GetDefaultConverterStrategy()
virtual ConverterStrategy GetDefaultConverterStrategy()
Returns
ConverterStrategy
⚡