LazyInitializer::EnsureInitialized Method
Initializes a target type if it hasn't already been initialized.
Assembly: mscorlib (in mscorlib.dll)
| Name | Description | |
|---|---|---|
![]() ![]() | EnsureInitialized<T>(T%) | Initializes a target reference type with the type's default constructor if it hasn't already been initialized. |
![]() ![]() | EnsureInitialized<T>(T%, Boolean%, Object^%) | Initializes a target reference or value type with its default constructor if it hasn't already been initialized. |
![]() ![]() | EnsureInitialized<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. |
![]() ![]() | EnsureInitialized<T>(T%, Func<T>^) | Initializes a target reference type by using a specified function if it hasn't already been initialized. |

