Table of Contents

Class NullConverter

Namespace
NetCord.JsonConverters
Assembly
NetCord.dll

You must use JsonIgnoreAttribute(Condition = WhenWritingDefault)

public class NullConverter : JsonConverter<bool>
Inheritance
NullConverter
Inherited Members

Constructors

NullConverter()

public NullConverter()

Methods

Read(ref Utf8JsonReader, Type, JsonSerializerOptions)

public override bool Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)

Parameters

reader Utf8JsonReader
typeToConvert Type
options JsonSerializerOptions

Returns

bool

Write(Utf8JsonWriter, bool, JsonSerializerOptions)

public override void Write(Utf8JsonWriter writer, bool value, JsonSerializerOptions options)

Parameters

writer Utf8JsonWriter
value bool
options JsonSerializerOptions