|
Lean
$LEAN_TAG$
|
Represents a reference to any value, T More...
Public Member Functions | |
| Ref (Func< T > getter, Action< T > setter) | |
| Initializes a new instance of the Ref<T> class More... | |
| IReadOnlyRef< T > | AsReadOnly () |
| Returns a read-only version of this instance More... | |
Static Public Member Functions | |
| static Ref< T > | Create< T > (Func< T > getter, Action< T > setter) |
| Creates a new Ref<T> instance More... | |
| static IReadOnlyRef< T > | CreateReadOnly< T > (Func< T > getter) |
| Creates a new IReadOnlyRef<T> instance More... | |
| static Ref< T > | Create< T > (T initialValue) |
| Creates a new Ref<T> instance by closing over the specified initialValue variable. NOTE: This won't close over the variable input to the function, but rather a copy of the variable. This reference will use it's own storage. More... | |
Properties | |
| T | Value [get, set] |
| Gets or sets the value of this reference More... | |
Properties inherited from QuantConnect.Util.IReadOnlyRef< T > | |
| T | Value [get] |
| Gets the current value this reference points to More... | |
Represents a reference to any value, T
Provides some helper methods that leverage C# type inference
| T | The data type the reference points to |
| QuantConnect.Util.Ref< T >.Ref | ( | Func< T > | getter, |
| Action< T > | setter | ||
| ) |
| IReadOnlyRef<T> QuantConnect.Util.Ref< T >.AsReadOnly | ( | ) |
|
static |
|
static |
Creates a new IReadOnlyRef<T> instance
|
static |
|
getset |