33 State =
LazyState.ExecutionAndPublicationException;
39 State =
LazyState.PublicationOnlyException;
59 case LazyState.PublicationOnlyViaConstructor:
64 case LazyState.ExecutionAndPublicationViaConstructor:
65 case LazyState.ExecutionAndPublicationViaFactory:
66 case LazyState.ExecutionAndPublicationException:
75 return state?.GetMode();
80 return state?._exceptionDispatch !=
null;
88 if (!useDefaultConstructor)
94 if (!useDefaultConstructor)
101 LazyState state = (useDefaultConstructor ? LazyState.ExecutionAndPublicationViaConstructor :
LazyState.ExecutionAndPublicationViaFactory);
static ? object CreateInstance([DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors|DynamicallyAccessedMemberTypes.NonPublicConstructors)] Type type, BindingFlags bindingAttr, Binder? binder, object?[]? args, CultureInfo? culture)
LazyHelper(LazyState state)
static readonly LazyHelper NoneViaFactory
static bool GetIsValueFaulted(LazyHelper state)
static readonly LazyHelper PublicationOnlyWaitForOtherThreadToPublish
static LazyThreadSafetyMode GetModeFromIsThreadSafe(bool isThreadSafe)
static readonly LazyHelper PublicationOnlyViaFactory
LazyThreadSafetyMode GetMode()
static ? LazyThreadSafetyMode GetMode(LazyHelper state)
static readonly LazyHelper NoneViaConstructor
readonly ExceptionDispatchInfo _exceptionDispatch
static LazyHelper Create(LazyThreadSafetyMode mode, bool useDefaultConstructor)
LazyHelper(LazyThreadSafetyMode mode, Exception exception)
static readonly LazyHelper PublicationOnlyViaConstructor
static ExceptionDispatchInfo Capture(Exception source)
static string Lazy_CreateValue_NoParameterlessCtorForT
static string Lazy_ctor_ModeInvalid
DynamicallyAccessedMemberTypes