JsonTypeConverter

Namespace: Murder.Serialization
Assembly: Murder.dll

public class JsonTypeConverter : JsonConverter<T>

Implements: JsonConverter<T>

⭐ Constructors

public JsonTypeConverter()

⭐ 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 Type Read(Utf8JsonReader& reader, Type typeToConvert, JsonSerializerOptions options)

Parameters
reader Utf8JsonReader&
typeToConvert Type
options JsonSerializerOptions

Returns
Type

ReadAsPropertyName(Utf8JsonReader&, Type, JsonSerializerOptions)

public virtual Type ReadAsPropertyName(Utf8JsonReader& reader, Type typeToConvert, JsonSerializerOptions options)

Parameters
reader Utf8JsonReader&
typeToConvert Type
options JsonSerializerOptions

Returns
Type

Write(Utf8JsonWriter, Type, JsonSerializerOptions)

public virtual void Write(Utf8JsonWriter writer, Type value, JsonSerializerOptions options)

Parameters
writer Utf8JsonWriter
value Type
options JsonSerializerOptions

WriteAsPropertyName(Utf8JsonWriter, Type, JsonSerializerOptions)

public virtual void WriteAsPropertyName(Utf8JsonWriter writer, Type value, JsonSerializerOptions options)

Parameters
writer Utf8JsonWriter
value Type
options JsonSerializerOptions

GetDefaultConverterStrategy()

virtual ConverterStrategy GetDefaultConverterStrategy()

Returns
ConverterStrategy