ArcFM Responder Mobile Developer Guide
LazyInit<T> Structure
Members 






The type of the class that will be initialized.
A generic, thread-safe container that will initialize a class only when first needed (lazy load).
Object Model
LazyInit<T> Structure
Syntax
'Declaration
 
<System.SerializableAttribute()>
Public Structure LazyInit(Of T As Class) 
   Inherits System.ValueType
'Usage
 
Dim instance As LazyInit(Of T)
[System.Serializable()]
public struct LazyInit<T> : System.ValueType 
where T: class
public type LazyInit = class(System.ValueType)
JScript does not support Generics.
[System.Serializable()]
public __value struct LazyInit<T> : public System.ValueType 
[System.Serializable()]
generic<typename T>
public value class LazyInit : public System.ValueType 
where T: ref class
Type Parameters
T
The type of the class that will be initialized.
Remarks
It is possible for the initialization delegate to get called more than once if two threads attempt to access the value at the same time (only the first initialized instance will be retained for the instance). If the initialization must be called only once, look at using a different mechanism (such as locking).
Inheritance Hierarchy

System.Object
   System.ValueType
      Miner.LazyInit<T>

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

LazyInit<T> Members
Miner Namespace

Send Feedback