Lean  $LEAN_TAG$
QuantConnect.SymbolValueJsonConverter Class Reference

Defines a JsonConverter to be used when you only want to serialize the Symbol.Value property instead of the full Symbol instance More...

Inheritance diagram for QuantConnect.SymbolValueJsonConverter:
[legend]

Public Member Functions

override void WriteJson (JsonWriter writer, object value, JsonSerializer serializer)
 Writes the JSON representation of the object. More...
 
override object ReadJson (JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer)
 Reads the JSON representation of the object. More...
 
override bool CanConvert (Type objectType)
 Determines whether this instance can convert the specified object type. More...
 

Detailed Description

Defines a JsonConverter to be used when you only want to serialize the Symbol.Value property instead of the full Symbol instance

Definition at line 27 of file SymbolValueJsonConverter.cs.

Member Function Documentation

◆ WriteJson()

override void QuantConnect.SymbolValueJsonConverter.WriteJson ( JsonWriter  writer,
object  value,
JsonSerializer  serializer 
)

Writes the JSON representation of the object.

Parameters
writerThe T:Newtonsoft.Json.JsonWriter to write to.
valueThe value.
serializerThe calling serializer.

Definition at line 33 of file SymbolValueJsonConverter.cs.

◆ ReadJson()

override object QuantConnect.SymbolValueJsonConverter.ReadJson ( JsonReader  reader,
Type  objectType,
object  existingValue,
JsonSerializer  serializer 
)

Reads the JSON representation of the object.

Parameters
readerThe T:Newtonsoft.Json.JsonReader to read from.
objectTypeType of the object.
existingValueThe existing value of object being read.
serializerThe calling serializer.
Returns
The object value.

Definition at line 53 of file SymbolValueJsonConverter.cs.

◆ CanConvert()

override bool QuantConnect.SymbolValueJsonConverter.CanConvert ( Type  objectType)

Determines whether this instance can convert the specified object type.

Parameters
objectTypeType of the object.
Returns
true if this instance can convert the specified object type; otherwise, false.

Definition at line 65 of file SymbolValueJsonConverter.cs.


The documentation for this class was generated from the following file: