API Reference
Class
RGBColorConverter
Writes RGBColor values as hexadecimal strings.
Inheritance
- JsonConverter<RGBColor>
- RGBColorConverter
Constructors
public RGBColorConverter() #Methods
public override RGBColor Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) #Returns:
RGBColorParameters
- reader System.Text.Json.Utf8JsonReader@
- typeToConvert System.Type
- options System.Text.Json.JsonSerializerOptions
public override Void Write(Utf8JsonWriter writer, RGBColor value, JsonSerializerOptions options) #Returns:
VoidParameters
- writer System.Text.Json.Utf8JsonWriter
- value HtmlForgeX.RGBColor
- options System.Text.Json.JsonSerializerOptions
Inherited Methods
public override Boolean CanConvert(Type typeToConvert) #Returns:
BooleanInherited from 0, Culture=neutral, PublicKeyToken=null]]
Parameters
- typeToConvert Type
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object
public override RGBColor ReadAsPropertyName(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) #Returns:
RGBColorInherited from 0, Culture=neutral, PublicKeyToken=null]]
Parameters
- reader Utf8JsonReader
- typeToConvert Type
- options JsonSerializerOptions
public override Void WriteAsPropertyName(Utf8JsonWriter writer, RGBColor value, JsonSerializerOptions options) #Returns:
VoidInherited from 0, Culture=neutral, PublicKeyToken=null]]
Parameters
- writer Utf8JsonWriter
- value RGBColor
- options JsonSerializerOptions