TLazyInitializer Record
Provides lazy initialization routines.
The TLazyInitializer type exposes the following members.
Show:
Name | Description | |
---|---|---|
EnsureInitialized<T>(T) | Overloaded. Initializes a target reference type by using a specified function if it hasn't already been initialized. | |
EnsureInitialized<T>(T,TFunc) | Overloaded. Initializes a target reference type by using a specified function if it hasn't already been initialized. |
The methods are using AtomicCmpExchange to ensure thread-safety when initializing instances.