Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
CollectionDebugView.cs
Go to the documentation of this file.
1
using
System.Diagnostics
;
2
3
namespace
System.Collections.Generic
;
4
5
internal
sealed
class
CollectionDebugView
<T>
6
{
7
private
readonly
ICollection<T>
_collection
;
8
9
[
DebuggerBrowsable
(
DebuggerBrowsableState
.RootHidden)]
10
public
T[] Items
11
{
12
get
13
{
14
T[]
array
=
new
T[
_collection
.
Count
];
15
_collection
.
CopyTo
(
array
, 0);
16
return
array
;
17
}
18
}
19
20
public
CollectionDebugView
(
ICollection<T>
collection
)
21
{
22
_collection
=
collection
??
throw
new
ArgumentNullException
(
"collection"
);
23
}
24
}
System.ArgumentNullException
Definition
ArgumentNullException.cs:10
System.Collections.Generic.CollectionDebugView._collection
readonly ICollection< T > _collection
Definition
CollectionDebugView.cs:7
System.Collections.Generic.CollectionDebugView.CollectionDebugView
CollectionDebugView(ICollection< T > collection)
Definition
CollectionDebugView.cs:20
System.Collections.Generic.CollectionDebugView
Definition
CollectionDebugView.cs:6
System.Collections.Generic.Dictionary
Definition
Dictionary.cs:14
System.Collections.ICollection.Count
int Count
Definition
ICollection.cs:5
System.Collections.ICollection.CopyTo
void CopyTo(Array array, int index)
System.Collections.Generic
Definition
IHashKeyCollection.cs:1
System.Diagnostics.DebuggerBrowsableState
DebuggerBrowsableState
Definition
DebuggerBrowsableState.cs:4
System.Diagnostics
Definition
AggregationManager.cs:6
System.ExceptionArgument.collection
@ collection
System.ExceptionArgument.array
@ array
source
System.ObjectModel
System.Collections.Generic
CollectionDebugView.cs
Generated by
1.10.0