Lean  $LEAN_TAG$
QuantConnect.Util.NullStringValueConverter< T > Class Template Reference

Converts the string "null" into a new instance of T. This converter only handles deserialization concerns. More...

Inheritance diagram for QuantConnect.Util.NullStringValueConverter< T >:
[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

Converts the string "null" into a new instance of T. This converter only handles deserialization concerns.

Template Parameters
TThe output type of the converter
Type Constraints
T :new() 

Definition at line 26 of file NullStringValueConverter.cs.

Member Function Documentation

◆ WriteJson()

override void QuantConnect.Util.NullStringValueConverter< T >.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 35 of file NullStringValueConverter.cs.

◆ ReadJson()

override object QuantConnect.Util.NullStringValueConverter< T >.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 50 of file NullStringValueConverter.cs.

◆ CanConvert()

override bool QuantConnect.Util.NullStringValueConverter< T >.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 66 of file NullStringValueConverter.cs.


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