Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
System.Lazy< T, TMetadata > Class Template Reference

Public Member Functions

 Lazy ()
 
 Lazy (T value)
 
 Lazy (Func< T > valueFactory)
 
 Lazy (bool isThreadSafe)
 
 Lazy (LazyThreadSafetyMode mode)
 
 Lazy (Func< T > valueFactory, bool isThreadSafe)
 
 Lazy (Func< T > valueFactory, LazyThreadSafetyMode mode)
 
override? string ToString ()
 
 Lazy (Func< T > valueFactory, TMetadata metadata)
 
 Lazy (TMetadata metadata)
 
 Lazy (TMetadata metadata, bool isThreadSafe)
 
 Lazy (Func< T > valueFactory, TMetadata metadata, bool isThreadSafe)
 
 Lazy (TMetadata metadata, LazyThreadSafetyMode mode)
 
 Lazy (Func< T > valueFactory, TMetadata metadata, LazyThreadSafetyMode mode)
 

Properties

TValueForDebugDisplay [get]
 
LazyThreadSafetyModeMode [get]
 
bool IsValueFaulted [get]
 
bool IsValueCreated [get]
 
T Value [get]
 
TMetadata Metadata [get]
 

Private Member Functions

 Lazy (Func< T > valueFactory, LazyThreadSafetyMode mode, bool useDefaultConstructor)
 
void ViaConstructor ()
 
void ViaFactory (LazyThreadSafetyMode mode)
 
void ExecutionAndPublication (LazyHelper executionAndPublication, bool useDefaultConstructor)
 
void PublicationOnly (LazyHelper publicationOnly, T possibleValue)
 
void PublicationOnlyViaConstructor (LazyHelper initializer)
 
void PublicationOnlyViaFactory (LazyHelper initializer)
 
void PublicationOnlyWaitForOtherThreadToPublish ()
 
T CreateValue ()
 

Static Private Member Functions

static T CreateViaDefaultConstructor ()
 

Private Attributes

volatile LazyHelper _state
 
Func< T_factory
 
T _value
 
readonly TMetadata _metadata
 

Detailed Description

Definition at line 225 of file Lazy.cs.


The documentation for this class was generated from the following file: