Class SingleOrArrayConverter<T>
Inheritance
object
JsonConverter
SingleOrArrayConverter<T>
Inherited Members
JsonConverter.CanRead
Namespace: Aetheros.Schema.OneM2M
Assembly: Aetheros.Schema.OneM2M.dll
Syntax
public class SingleOrArrayConverter<T> : JsonConverter
Type Parameters
Name | Description |
---|---|
T |
Properties
| Edit this page View SourceCanWrite
Gets a value indicating whether this Newtonsoft.Json.JsonConverter can write JSON.
Declaration
public override bool CanWrite { get; }
Property Value
Type | Description |
---|---|
bool |
|
Overrides
Newtonsoft.Json.JsonConverter.CanWrite
Methods
| Edit this page View SourceCanConvert(Type)
Determines whether this instance can convert the specified object type.
Declaration
public override bool CanConvert(Type objectType)
Parameters
Type | Name | Description |
---|---|---|
Type | objectType | Type of the object. |
Returns
Type | Description |
---|---|
bool |
|
Overrides
| Edit this page View SourceReadJson(JsonReader, Type, object, JsonSerializer)
Reads the JSON representation of the object.
Declaration
public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer)
Parameters
Type | Name | Description |
---|---|---|
JsonReader | reader | The Newtonsoft.Json.JsonReader to read from. |
Type | objectType | Type of the object. |
object | existingValue | The existing value of object being read. |
JsonSerializer | serializer | The calling serializer. |
Returns
Type | Description |
---|---|
object | The object value. |
Overrides
| Edit this page View SourceWriteJson(JsonWriter, object, JsonSerializer)
Writes the JSON representation of the object.
Declaration
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
Parameters
Type | Name | Description |
---|---|---|
JsonWriter | writer | The Newtonsoft.Json.JsonWriter to write to. |
object | value | The value. |
JsonSerializer | serializer | The calling serializer. |
Overrides
Newtonsoft.Json.JsonConverter.WriteJson(Newtonsoft.Json.JsonWriter, object, Newtonsoft.Json.JsonSerializer)