-
Notifications
You must be signed in to change notification settings - Fork 35
M_CodeJam_Lazy_Create__1_1
Andrew Koryavchenko edited this page Jun 17, 2018
·
5 revisions
Initializes a new instance of the Lazy(T) class. When lazy initialization occurs, the default constructor of the target type is used.
Namespace: CodeJam
Assembly: CodeJam (in CodeJam.dll) Version: 2.1.0.0
C#
public static Lazy<T> Create<T>(
bool isThreadSafe
)
VB
Public Shared Function Create(Of T) (
isThreadSafe As Boolean
) As Lazy(Of T)
F#
static member Create :
isThreadSafe : bool -> Lazy<'T>
- isThreadSafe
- Type: System.Boolean
true
to make this instance usable concurrently by multiple threads;false
to make the instance usable by only one thread at a time.
- T
- The type of object that is being lazily initialized.