Class NullableRangedIntConverter<T>
Inherited Members
JsonConverter.CanRead
JsonConverter.CanWrite
Namespace: Glitch9
Assembly: Glitch9.dll
Syntax
public class NullableRangedIntConverter<T> : JsonConverter<T> where T : NullableRangedInt<T>, new()
Type Parameters
| Name | Description |
|---|---|
| T |
Methods
| Edit this page View SourceReadJson(JsonReader, Type, T, bool, JsonSerializer)
Reads the JSON representation of the object.
Declaration
public override T ReadJson(JsonReader r, Type t, T existing, bool hasExisting, JsonSerializer s)
Parameters
| Type | Name | Description |
|---|---|---|
| JsonReader | r | |
| Type | t | |
| T | existing | |
| bool | hasExisting | |
| JsonSerializer | s |
Returns
| Type | Description |
|---|---|
| T | The object value. |
Overrides
| Edit this page View SourceWriteJson(JsonWriter, T, JsonSerializer)
Writes the JSON representation of the object.
Declaration
public override void WriteJson(JsonWriter writer, T value, JsonSerializer serializer)
Parameters
| Type | Name | Description |
|---|---|---|
| JsonWriter | writer | The Newtonsoft.Json.JsonWriter to write to. |
| T | value | The value. |
| JsonSerializer | serializer | The calling serializer. |
Overrides
Newtonsoft.Json.JsonConverter<T>.WriteJson(Newtonsoft.Json.JsonWriter, T, Newtonsoft.Json.JsonSerializer)