Class ArrayOfStringOrConverter<T>
Register per closed generic type: typeof(ArrayOfStringOrConverter<YourType>)
Inherited Members
JsonConverter<StringOr<T>[]>.WriteJson(JsonWriter, StringOr<T>[], JsonSerializer)
JsonConverter.CanRead
JsonConverter.CanWrite
Namespace: Glitch9.IO.Networking
Assembly: Glitch9.IO.dll
Syntax
public sealed class ArrayOfStringOrConverter<T> : JsonConverter<StringOr<T>[]>
Type Parameters
| Name | Description |
|---|---|
| T |
Methods
| Edit this page View SourceReadJson(JsonReader, Type, StringOr<T>[], bool, JsonSerializer)
Reads the JSON representation of the object.
Declaration
public override StringOr<T>[] ReadJson(JsonReader reader, Type objectType, StringOr<T>[] existingValue, bool hasExistingValue, JsonSerializer serializer)
Parameters
| Type | Name | Description |
|---|---|---|
| JsonReader | reader | The Newtonsoft.Json.JsonReader to read from. |
| Type | objectType | Type of the object. |
| StringOr<T>[] | existingValue | The existing value of object being read. If there is no existing value then |
| bool | hasExistingValue | The existing value has a value. |
| JsonSerializer | serializer | The calling serializer. |
Returns
| Type | Description |
|---|---|
| StringOr<T>[] | The object value. |
Overrides
| Edit this page View SourceWriteJson(JsonWriter, StringOr<T>[], JsonSerializer)
Writes the JSON representation of the object.
Declaration
public override void WriteJson(JsonWriter writer, StringOr<T>[] value, JsonSerializer serializer)
Parameters
| Type | Name | Description |
|---|---|---|
| JsonWriter | writer | The Newtonsoft.Json.JsonWriter to write to. |
| StringOr<T>[] | value | The value. |
| JsonSerializer | serializer | The calling serializer. |