Lean
$LEAN_TAG$
|
We wrap a T instance, a value type, with a class, a reference type, to achieve thread safety when assigning new values and reading from multiple threads. This is possible because assignments are atomic operations in C# for reference types (among others). More...
Public Member Functions | |
ReferenceWrapper (T value) | |
Creates a new instance More... | |
Properties | |
T | Value [get] |
The current value More... | |
We wrap a T instance, a value type, with a class, a reference type, to achieve thread safety when assigning new values and reading from multiple threads. This is possible because assignments are atomic operations in C# for reference types (among others).
This is a simpler, performance oriented version of Ref
T | : | struct |
Definition at line 24 of file ReferenceWrapper.cs.
QuantConnect.Util.ReferenceWrapper< T >.ReferenceWrapper | ( | T | value | ) |
Creates a new instance
value | The value to use |
Definition at line 36 of file ReferenceWrapper.cs.
|
get |
The current value
Definition at line 30 of file ReferenceWrapper.cs.