Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

LazyInitializer::EnsureInitialized Method

.NET Framework (current version)
 

Initializes a target type if it hasn't already been initialized.

Namespace:   System.Threading
Assembly:  mscorlib (in mscorlib.dll)

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticEnsureInitialized<T>(T%)

Initializes a target reference type with the type's default constructor if it hasn't already been initialized.

System_CAPS_pubmethodSystem_CAPS_staticEnsureInitialized<T>(T%, Boolean%, Object^%)

Initializes a target reference or value type with its default constructor if it hasn't already been initialized.

System_CAPS_pubmethodSystem_CAPS_staticEnsureInitialized<T>(T%, Boolean%, Object^%, Func<T>^)

Initializes a target reference or value type by using a specified function if it hasn't already been initialized.

System_CAPS_pubmethodSystem_CAPS_staticEnsureInitialized<T>(T%, Func<T>^)

Initializes a target reference type by using a specified function if it hasn't already been initialized.

Return to top
Show:
© 2017 Microsoft