Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
LazyDebugView.cs
Go to the documentation of this file.
1
using
System.Diagnostics.CodeAnalysis
;
2
using
System.Threading
;
3
4
namespace
System
;
5
6
internal
sealed
class
LazyDebugView
<[DynamicallyAccessedMembers(
DynamicallyAccessedMemberTypes
.
PublicParameterlessConstructor
)] T>
7
{
8
private
readonly
Lazy<T>
_lazy
;
9
10
public
bool
IsValueCreated
=>
_lazy
.
IsValueCreated
;
11
12
public
T
Value
=>
_lazy
.
ValueForDebugDisplay
;
13
14
public
LazyThreadSafetyMode
? Mode =>
_lazy
.
Mode
;
15
16
public
bool
IsValueFaulted
=>
_lazy
.
IsValueFaulted
;
17
18
public
LazyDebugView
(
Lazy<T>
lazy)
19
{
20
_lazy
= lazy;
21
}
22
}
System.LazyDebugView._lazy
readonly Lazy< T > _lazy
Definition
LazyDebugView.cs:8
System.LazyDebugView.IsValueFaulted
bool IsValueFaulted
Definition
LazyDebugView.cs:16
System.LazyDebugView.LazyDebugView
LazyDebugView(Lazy< T > lazy)
Definition
LazyDebugView.cs:18
System.LazyDebugView.IsValueCreated
bool IsValueCreated
Definition
LazyDebugView.cs:10
System.LazyDebugView.Value
T Value
Definition
LazyDebugView.cs:12
System.LazyDebugView
Definition
LazyDebugView.cs:7
System.Lazy.Mode
LazyThreadSafetyMode? Mode
Definition
Lazy.cs:29
System.Lazy.IsValueFaulted
bool IsValueFaulted
Definition
Lazy.cs:31
System.Lazy.IsValueCreated
bool IsValueCreated
Definition
Lazy.cs:33
System.Lazy.ValueForDebugDisplay
T? ValueForDebugDisplay
Definition
Lazy.cs:18
System.Lazy
Definition
Lazy.cs:226
System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes
DynamicallyAccessedMemberTypes
Definition
DynamicallyAccessedMemberTypes.cs:5
System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicParameterlessConstructor
@ PublicParameterlessConstructor
System.Diagnostics.CodeAnalysis
Definition
AllowNullAttribute.cs:1
System.Threading.LazyThreadSafetyMode
LazyThreadSafetyMode
Definition
LazyThreadSafetyMode.cs:4
System.Threading
Definition
TaskToApm.cs:3
System
Definition
BlockingCollection.cs:8
source
System.Private.CoreLib
System
LazyDebugView.cs
Generated by
1.10.0