Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ LazyHelper() [2/2]

System.LazyHelper.LazyHelper ( LazyThreadSafetyMode mode,
Exception exception )
inlinepackage

Definition at line 28 of file LazyHelper.cs.

29 {
30 switch (mode)
31 {
32 case LazyThreadSafetyMode.ExecutionAndPublication:
33 State = LazyState.ExecutionAndPublicationException;
34 break;
35 case LazyThreadSafetyMode.None:
36 State = LazyState.NoneException;
37 break;
38 case LazyThreadSafetyMode.PublicationOnly:
39 State = LazyState.PublicationOnlyException;
40 break;
41 }
43 }
readonly ExceptionDispatchInfo _exceptionDispatch
Definition LazyHelper.cs:19
static ExceptionDispatchInfo Capture(Exception source)
LazyState
Definition LazyState.cs:4

References System.LazyHelper._exceptionDispatch, System.Runtime.ExceptionServices.ExceptionDispatchInfo.Capture(), and System.exception.