RgbaJsonConverter
Namespace: Shadop.Archmage.Sdk
Newtonsoft.Json converter for Rgba.
public class RgbaJsonConverter : JsonConverter<Rgba>Inheritance Object → JsonConverter → JsonConverter
Remarks:
Serializes as "#RRGGBBAA", or an empty string for the zero value.
Deserializes from "#RRGGBB", "#RRGGBBAA", empty string, or null.
Properties
Section titled “Properties”CanRead
Section titled “CanRead”public bool CanRead { get; }Property Value
Section titled “Property Value”CanWrite
Section titled “CanWrite”public bool CanWrite { get; }Property Value
Section titled “Property Value”Constructors
Section titled “Constructors”RgbaJsonConverter()
Section titled “RgbaJsonConverter()”public RgbaJsonConverter()Methods
Section titled “Methods”ReadJson(JsonReader, Type, Rgba, Boolean, JsonSerializer)
Section titled “ReadJson(JsonReader, Type, Rgba, Boolean, JsonSerializer)”public Rgba ReadJson(JsonReader reader, Type objectType, Rgba existingValue, bool hasExistingValue, JsonSerializer serializer)Parameters
Section titled “Parameters”reader JsonReader
objectType Type
existingValue Rgba
hasExistingValue Boolean
serializer JsonSerializer
Returns
Section titled “Returns”WriteJson(JsonWriter, Rgba, JsonSerializer)
Section titled “WriteJson(JsonWriter, Rgba, JsonSerializer)”public void WriteJson(JsonWriter writer, Rgba value, JsonSerializer serializer)Parameters
Section titled “Parameters”writer JsonWriter
value Rgba
serializer JsonSerializer