Lean  $LEAN_TAG$
QuantConnect.Util.SecurityIdentifierJsonConverter Class Reference

A JsonConverter implementation that serializes a SecurityIdentifier as a string More...

Inheritance diagram for QuantConnect.Util.SecurityIdentifierJsonConverter:
[legend]

Protected Member Functions

override string Convert (SecurityIdentifier value)
 Converts as security identifier to a string More...
 
override SecurityIdentifier Convert (string value)
 Converts the input string to a security identifier More...
 
- Protected Member Functions inherited from QuantConnect.Util.TypeChangeJsonConverter< SecurityIdentifier, string >
virtual T Create (Type type, JToken token)
 Creates an instance of the un-projected type to be deserialized More...
 
abstract TResult Convert (T value)
 Convert the input value to a value to be serialized More...
 
abstract T Convert (TResult value)
 Converts the input value to be deserialized More...
 

Additional Inherited Members

- Public Member Functions inherited from QuantConnect.Util.TypeChangeJsonConverter< SecurityIdentifier, string >
override object ReadJson (JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer)
 Reads the JSON representation of the object. More...
 
override void WriteJson (JsonWriter writer, object value, JsonSerializer serializer)
 Writes the JSON representation of the object. More...
 
override bool CanConvert (Type objectType)
 Determines whether this instance can convert the specified object type. More...
 
- Protected Attributes inherited from QuantConnect.Util.TypeChangeJsonConverter< SecurityIdentifier, string >
virtual bool PopulateProperties
 True will populate TResult object returned by Convert(TResult) with json properties More...
 

Detailed Description

A JsonConverter implementation that serializes a SecurityIdentifier as a string

Definition at line 25 of file SecurityIdentifierJsonConverter.cs.

Member Function Documentation

◆ Convert() [1/2]

override string QuantConnect.Util.SecurityIdentifierJsonConverter.Convert ( SecurityIdentifier  value)
protected

Converts as security identifier to a string

Parameters
valueThe input value to be converted before serialziation
Returns
A new instance of TResult that is to be serialzied

Definition at line 32 of file SecurityIdentifierJsonConverter.cs.

Here is the call graph for this function:

◆ Convert() [2/2]

override SecurityIdentifier QuantConnect.Util.SecurityIdentifierJsonConverter.Convert ( string  value)
protected

Converts the input string to a security identifier

Parameters
valueThe deserialized value that needs to be converted to T
Returns
The converted value

Definition at line 42 of file SecurityIdentifierJsonConverter.cs.

Here is the call graph for this function:

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