Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
DictionaryKeyCollectionDebugView.cs
Go to the documentation of this file.
1
using
System.Diagnostics
;
2
3
namespace
System.Collections.Generic
;
4
5
internal
sealed
class
DictionaryKeyCollectionDebugView<TKey, TValue>
6
{
7
private
readonly
ICollection<TKey>
_collection
;
8
9
[
DebuggerBrowsable
(
DebuggerBrowsableState
.RootHidden)]
10
public
TKey[] Items
11
{
12
get
13
{
14
TKey[]
array
=
new
TKey[
_collection
.
Count
];
15
_collection
.
CopyTo
(
array
, 0);
16
return
array
;
17
}
18
}
19
20
public
DictionaryKeyCollectionDebugView
(
ICollection<TKey>
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.DictionaryKeyCollectionDebugView.DictionaryKeyCollectionDebugView
DictionaryKeyCollectionDebugView(ICollection< TKey > collection)
Definition
DictionaryKeyCollectionDebugView.cs:20
System.Collections.Generic.DictionaryKeyCollectionDebugView._collection
readonly ICollection< TKey > _collection
Definition
DictionaryKeyCollectionDebugView.cs:7
System.Collections.Generic.Dictionary
Definition
Dictionary.cs:14
System.Collections.Generic.ICollection.CopyTo
void CopyTo(T[] array, int arrayIndex)
System.Collections.Generic.ICollection.Count
int Count
Definition
ICollection.cs:5
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
DictionaryKeyCollectionDebugView.cs
Generated by
1.10.0