Table of Contents

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

target T
value T

Returns

T

the value in target after the initialization (even if another thread set it in the meantime)

Type Parameters

T