Class ColorJsonConverter
Inherited Members
JsonConverter.CanRead
JsonConverter.CanWrite
Namespace: SadConsole.SerializedTypes
Assembly: SadConsole.dll
Syntax
public class ColorJsonConverter : JsonConverter<Color>
Constructors
ColorJsonConverter()
Declaration
public ColorJsonConverter()
Methods
ReadJson(JsonReader, Type, Color, bool, JsonSerializer)
Declaration
public override Color ReadJson(JsonReader reader, Type objectType, Color existingValue, bool hasExistingValue, JsonSerializer serializer)
Parameters
Type | Name | Description |
---|---|---|
JsonReader | reader | |
Type | objectType | |
Color | existingValue | |
bool | hasExistingValue | |
JsonSerializer | serializer |
Returns
Type | Description |
---|---|
Color |
Overrides
WriteJson(JsonWriter, Color, JsonSerializer)
Declaration
public override void WriteJson(JsonWriter writer, Color value, JsonSerializer serializer)
Parameters
Type | Name | Description |
---|---|---|
JsonWriter | writer | |
Color | value | |
JsonSerializer | serializer |
Overrides
Newtonsoft.Json.JsonConverter<SadRogue.Primitives.Color>.WriteJson(Newtonsoft.Json.JsonWriter, SadRogue.Primitives.Color, Newtonsoft.Json.JsonSerializer)