Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
ICollectionDebugView.cs
Go to the documentation of this file.
1
using
System.Diagnostics
;
2
3
namespace
System.Collections.Generic
;
4
5
internal
sealed
class
ICollectionDebugView<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
ICollectionDebugView
(
ICollection<T>
collection
)
21
{
22
if
(
collection
==
null
)
23
{
24
throw
new
ArgumentNullException
(
"collection"
);
25
}
26
_collection
=
collection
;
27
}
28
}
System.ArgumentNullException
Definition
ArgumentNullException.cs:10
System.Collections.Generic.Dictionary
Definition
Dictionary.cs:14
System.Collections.Generic.ICollectionDebugView._collection
readonly ICollection< T > _collection
Definition
ICollectionDebugView.cs:7
System.Collections.Generic.ICollectionDebugView.ICollectionDebugView
ICollectionDebugView(ICollection< T > collection)
Definition
ICollectionDebugView.cs:20
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.Collections
System.Collections.Generic
ICollectionDebugView.cs
Generated by
1.10.0