Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
ImmutableListBuilderDebuggerProxy.cs
Go to the documentation of this file.
1
using
System.Diagnostics
;
2
3
namespace
System.Collections.Immutable
;
4
5
internal
sealed
class
ImmutableListBuilderDebuggerProxy
<T>
6
{
7
private
readonly
ImmutableList<T>
.
Builder
_list
;
8
9
private
T[]
_cachedContents
;
10
11
[DebuggerBrowsable(
DebuggerBrowsableState
.RootHidden)]
12
public
T[]
Contents
13
{
14
get
15
{
16
if
(
_cachedContents
==
null
)
17
{
18
_cachedContents
=
_list
.ToArray(
_list
.Count);
19
}
20
return
_cachedContents
;
21
}
22
}
23
24
public
ImmutableListBuilderDebuggerProxy
(
ImmutableList<T>
.Builder builder)
25
{
26
Requires
.NotNull(builder,
"builder"
);
27
_list
= builder;
28
}
29
}
System.Collections.Immutable.ImmutableListBuilderDebuggerProxy.Contents
T[] Contents
Definition
ImmutableListBuilderDebuggerProxy.cs:13
System.Collections.Immutable.ImmutableListBuilderDebuggerProxy._list
readonly ImmutableList< T >.Builder _list
Definition
ImmutableListBuilderDebuggerProxy.cs:7
System.Collections.Immutable.ImmutableListBuilderDebuggerProxy._cachedContents
T[] _cachedContents
Definition
ImmutableListBuilderDebuggerProxy.cs:9
System.Collections.Immutable.ImmutableListBuilderDebuggerProxy.ImmutableListBuilderDebuggerProxy
ImmutableListBuilderDebuggerProxy(ImmutableList< T >.Builder builder)
Definition
ImmutableListBuilderDebuggerProxy.cs:24
System.Collections.Immutable.ImmutableListBuilderDebuggerProxy
Definition
ImmutableListBuilderDebuggerProxy.cs:6
System.Collections.Immutable.ImmutableList.Builder
Definition
ImmutableList.cs:138
System.Collections.Immutable.ImmutableList
Definition
ImmutableList.cs:134
System.Collections.Immutable.Requires
Definition
Requires.cs:7
System.Collections.Immutable
Definition
AllocFreeConcurrentStack.cs:4
System.Diagnostics.DebuggerBrowsableState
DebuggerBrowsableState
Definition
DebuggerBrowsableState.cs:4
System.Diagnostics
Definition
AggregationManager.cs:6
source
System.Collections.Immutable
System.Collections.Immutable
ImmutableListBuilderDebuggerProxy.cs
Generated by
1.10.0