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
readerUtf8JsonReadertypeToConvertTypeoptionsJsonSerializerOptions
Returns
Write(Utf8JsonWriter, bool, JsonSerializerOptions)
public override void Write(Utf8JsonWriter writer, bool value, JsonSerializerOptions options)
Parameters
writerUtf8JsonWritervaluebooloptionsJsonSerializerOptions