Class InterlockedOperations
- Namespace
- ExControls
- Assembly
- ExControls.dll
Thread-safe lazy initialization.
public static class InterlockedOperations
- Inheritance
-
InterlockedOperations
- Inherited Members
Methods
Initialize<T>(ref T, T)
Sets target to value if it is still null.
public static T Initialize<T>(ref T target, T value) where T : class
Parameters
targetTvalueT
Returns
- T
the value in
targetafter the initialization (even if another thread set it in the meantime)
Type Parameters
T