LazyInitializer Methods
Collapse the table of content
Expand the table of content

LazyInitializer Methods

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

  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

Show:
© 2017 Microsoft