Lean
$LEAN_TAG$
|
Reads json and always produces a List, even if the input has just an object More...
Public Member Functions | |
override void | WriteJson (JsonWriter writer, object value, JsonSerializer serializer) |
Writes the JSON representation of the object. If the instance is not a list then it will be wrapped in a list More... | |
override object | ReadJson (JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer) |
Reads the JSON representation of the object. If the JSON represents a singular instance, it will be returned in a list. More... | |
override bool | CanConvert (Type objectType) |
Determines whether this instance can convert the specified object type. More... | |
Reads json and always produces a List, even if the input has just an object
Definition at line 25 of file SingleValueListConverter.cs.
override void QuantConnect.Util.SingleValueListConverter< T >.WriteJson | ( | JsonWriter | writer, |
object | value, | ||
JsonSerializer | serializer | ||
) |
Writes the JSON representation of the object. If the instance is not a list then it will be wrapped in a list
writer | The T:Newtonsoft.Json.JsonWriter to write to. |
value | The value. |
serializer | The calling serializer. |
Definition at line 34 of file SingleValueListConverter.cs.
override object QuantConnect.Util.SingleValueListConverter< T >.ReadJson | ( | JsonReader | reader, |
Type | objectType, | ||
object | existingValue, | ||
JsonSerializer | serializer | ||
) |
Reads the JSON representation of the object. If the JSON represents a singular instance, it will be returned in a list.
reader | The T:Newtonsoft.Json.JsonReader to read from. |
objectType | Type of the object. |
existingValue | The existing value of object being read. |
serializer | The calling serializer. |
Definition at line 52 of file SingleValueListConverter.cs.
override bool QuantConnect.Util.SingleValueListConverter< T >.CanConvert | ( | Type | objectType | ) |
Determines whether this instance can convert the specified object type.
objectType | Type of the object. |
true
if this instance can convert the specified object type; otherwise, false
.Definition at line 71 of file SingleValueListConverter.cs.