Skip to content

T_CodeJam_Lazy

Andrew Koryavchenko edited this page Jun 17, 2018 · 5 revisions

Lazy Class

Helper methods for Lazy(T) class.

Inheritance Hierarchy

System.Object
  CodeJam.Lazy
Namespace: CodeJam
Assembly: CodeJam (in CodeJam.dll) Version: 2.1.0.0

Syntax

C#

public static class Lazy

VB

Public NotInheritable Class Lazy

F#

[<AbstractClassAttribute>]
[<SealedAttribute>]
type Lazy =  class end

Methods

 

Name Description
Public methodStatic member Create(T)() Initializes a new instance of the Lazy(T) class. When lazy initialization occurs, the default constructor of the target type is used.
Public methodStatic member Create(T)(Boolean) Initializes a new instance of the Lazy(T) class. When lazy initialization occurs, the default constructor of the target type is used.
Public methodStatic member Create(T)(Func(T)) Initializes a new instance of the Lazy(T) class. When lazy initialization occurs, the default constructor of the target type is used.
Public methodStatic member Create(T)(LazyThreadSafetyMode) Initializes a new instance of the Lazy(T) class. When lazy initialization occurs, the default constructor of the target type is used.
Public methodStatic member Create(T)(Func(T), Boolean) Initializes a new instance of the Lazy(T) class. When lazy initialization occurs, the default constructor of the target type is used.
Public methodStatic member Create(T)(Func(T), LazyThreadSafetyMode) Initializes a new instance of the Lazy(T) class. When lazy initialization occurs, the default constructor of the target type is used.
  Back to Top

See Also

Reference

CodeJam Namespace

Clone this wiki locally