An alternative to Lazy<T> More...
Public Member Functions | |
LazySingleton () | |
Initializes a new instance of the LazySingleton<T> class. More... | |
LazySingleton (Func< T > @delegate) | |
Initializes a new instance of the LazySingleton<T> class. More... | |
Properties | |
bool | IsValueCreated [get] |
Gets a value indicating whether this instance is initilized and contains a value. More... | |
T | Value [get] |
Gets the instance. More... | |
An alternative to Lazy<T>
T |
T | : | class |
Definition at line 10 of file LazySingleton.cs.
Csla.LazySingleton< T >.LazySingleton | ( | ) |
Initializes a new instance of the LazySingleton<T> class.
Will use the default public constructor to create an instance of T (the vlaue)
Definition at line 22 of file LazySingleton.cs.
Csla.LazySingleton< T >.LazySingleton | ( | Func< T > @ | delegate | ) |
Initializes a new instance of the LazySingleton<T> class.
Will call the supplied delegate to create an instance of T (the value)
delegate | The @delegate. |
Definition at line 30 of file LazySingleton.cs.
|
get |
Gets a value indicating whether this instance is initilized and contains a value.
true
if this instance is value created; otherwise, false
.
Definition at line 41 of file LazySingleton.cs.
|
get |