Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

LazyInitializer.EnsureInitialized Method

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  NameDescription
Public method Static member EnsureInitialized<T>(T) Initializes a target reference type with the type's default constructor if the target has not already been initialized.
Public method Static member EnsureInitialized<T>(T, Func<T>) Initializes a target reference type using the specified function if it has not already been initialized.
Public method Static member EnsureInitialized<T>(T, Boolean, Object) Initializes a target reference or value type with its default constructor if it has not already been initialized.
Public method Static member EnsureInitialized<T>(T, Boolean, Object, Func<T>) Initializes a target reference or value type with a specified function if it has not already been initialized.
Top
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.