Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
◆
EnsureInitialized< T >()
[2/3]
static
T
System.Threading.LazyInitializer.EnsureInitialized<
T
>
(
[NotNull] ref
T
?
target
,
[NotNullIfNotNull("syncLock")] ref object?
syncLock
,
Func<
T
>
valueFactory
)
inline
static
Type Constraints
T
:
class
Definition at line
92
of file
LazyInitializer.cs
.
92
:
class
93
{
94
return
Volatile
.Read(ref target) ?? EnsureInitializedCore(ref target, ref syncLock, valueFactory);
95
}
System.Reflection.Metadata.ILOpCode.Volatile
@ Volatile
References
System.Threading.Volatile.Read()
.
System
Threading
LazyInitializer
Generated by
1.10.0