API Reference
Class
ChartJsInteractionModeNullableConverter
Converts nullable ChartJsInteractionMode enum.
Inheritance
- JsonConverter<Nullable<ChartJsInteractionMode>>
- ChartJsInteractionModeNullableConverter
Constructors
public ChartJsInteractionModeNullableConverter() #Methods
public override Nullable<ChartJsInteractionMode> Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) #Returns:
Nullable<ChartJsInteractionMode>Reads a nullable ChartJsInteractionMode value from JSON.
Parameters
- reader System.Text.Json.Utf8JsonReader@
- The JSON reader.
- typeToConvert System.Type
- The target type to convert.
- options System.Text.Json.JsonSerializerOptions
- The serializer options.
Returns
The parsed ChartJsInteractionMode value or null.
public override Void Write(Utf8JsonWriter writer, Nullable<ChartJsInteractionMode> value, JsonSerializerOptions options) #Returns:
VoidWrites a nullable ChartJsInteractionMode value as JSON.
Parameters
- writer System.Text.Json.Utf8JsonWriter
- The JSON writer.
- value System.Nullable{HtmlForgeX.ChartJsInteractionMode}
- The value to write.
- options System.Text.Json.JsonSerializerOptions
- The serializer options.
Inherited Methods
public override Boolean CanConvert(Type typeToConvert) #Returns:
BooleanInherited from 0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]
Parameters
- typeToConvert Type
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object
public override Nullable<ChartJsInteractionMode> ReadAsPropertyName(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) #Returns:
Nullable<ChartJsInteractionMode>Inherited from 0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]
Parameters
- reader Utf8JsonReader
- typeToConvert Type
- options JsonSerializerOptions
public override Void WriteAsPropertyName(Utf8JsonWriter writer, Nullable<ChartJsInteractionMode> value, JsonSerializerOptions options) #Returns:
VoidInherited from 0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]
Parameters
- writer Utf8JsonWriter
- value Nullable<ChartJsInteractionMode>
- options JsonSerializerOptions