ArcFM Desktop Developer Guide
LazyInit<T> Structure
Members 


Version: 10.2.1b and 10.2.1b SP1

Resource Center Home

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
 
<SerializableAttribute()>
Public Structure LazyInit(Of T As Class) 
   Inherits System.ValueType
'Usage
 
Dim instance As LazyInit(Of T)
[Serializable()]
public struct LazyInit<T> : System.ValueType 
where T: 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 XP SP3 (32-bit and 64-bit), Windows 7 (32-bit and 64-bit)

Not all Operating Systems are supported on all products. Visit the ArcFM Solution Supported Versions page for full details.

See Also

Reference

LazyInit<T> Members
Miner Namespace

 

 


Send Comment