Provides lazy initialization routines.
Namespace:
System.Threading
Assembly:
System.Threading (in System.Threading.dll)
Syntax
Visual Basic (Declaration) |
---|
<HostProtectionAttribute(SecurityAction.LinkDemand, Synchronization := True, _ ExternalThreading := True)> _ Public NotInheritable Class LazyInitializer |
C# |
---|
[HostProtectionAttribute(SecurityAction.LinkDemand, Synchronization = true, ExternalThreading = true)] public static class LazyInitializer |
Remarks
These routines avoid needing to allocate a dedicated, lazy-initialization instance, instead using
references to ensure targets have been initialized as they are accessed.
Inheritance Hierarchy
System..::.Object
System.Threading..::.LazyInitializer
System.Threading..::.LazyInitializer