30 references to LazyState
System.Private.CoreLib (30)
src\libraries\System.Private.CoreLib\src\System\Lazy.cs (30)
45
internal static readonly LazyHelper NoneViaConstructor = new LazyHelper(
LazyState
.NoneViaConstructor);
46
internal static readonly LazyHelper NoneViaFactory = new LazyHelper(
LazyState
.NoneViaFactory);
47
internal static readonly LazyHelper PublicationOnlyViaConstructor = new LazyHelper(
LazyState
.PublicationOnlyViaConstructor);
48
internal static readonly LazyHelper PublicationOnlyViaFactory = new LazyHelper(
LazyState
.PublicationOnlyViaFactory);
49
internal static readonly LazyHelper PublicationOnlyWaitForOtherThreadToPublish = new LazyHelper(
LazyState
.PublicationOnlyWait);
51
internal
LazyState
State { get; }
58
internal LazyHelper(
LazyState
state)
71
State =
LazyState
.ExecutionAndPublicationException;
75
State =
LazyState
.NoneException;
79
State =
LazyState
.PublicationOnlyException;
102
case
LazyState
.NoneViaConstructor:
103
case
LazyState
.NoneViaFactory:
104
case
LazyState
.NoneException:
107
case
LazyState
.PublicationOnlyViaConstructor:
108
case
LazyState
.PublicationOnlyViaFactory:
109
case
LazyState
.PublicationOnlyWait:
110
case
LazyState
.PublicationOnlyException:
113
case
LazyState
.ExecutionAndPublicationViaConstructor:
114
case
LazyState
.ExecutionAndPublicationViaFactory:
115
case
LazyState
.ExecutionAndPublicationException:
145
LazyState
state = useDefaultConstructor ?
146
LazyState
.ExecutionAndPublicationViaConstructor :
147
LazyState
.ExecutionAndPublicationViaFactory;
400
case
LazyState
.NoneViaConstructor:
404
case
LazyState
.NoneViaFactory:
408
case
LazyState
.PublicationOnlyViaConstructor:
412
case
LazyState
.PublicationOnlyViaFactory:
416
case
LazyState
.PublicationOnlyWait:
420
case
LazyState
.ExecutionAndPublicationViaConstructor:
424
case
LazyState
.ExecutionAndPublicationViaFactory: