Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
IDictionaryDebugView.cs
Go to the documentation of this file.
1
using
System.Diagnostics
;
2
3
namespace
System.Collections.Generic
;
4
5
internal
sealed
class
IDictionaryDebugView<K, V>
6
{
7
private
readonly
IDictionary<K, V>
_dict
;
8
9
[
DebuggerBrowsable
(
DebuggerBrowsableState
.RootHidden)]
10
public
KeyValuePair<K, V>
[] Items
11
{
12
get
13
{
14
KeyValuePair<K, V>
[]
array
=
new
KeyValuePair<K, V>
[
_dict
.Count];
15
_dict
.CopyTo(
array
, 0);
16
return
array
;
17
}
18
}
19
20
public
IDictionaryDebugView
(
IDictionary<K, V>
dictionary
)
21
{
22
if
(
dictionary
==
null
)
23
{
24
throw
new
ArgumentNullException
(
"dictionary"
);
25
}
26
_dict
=
dictionary
;
27
}
28
}
System.ArgumentNullException
Definition
ArgumentNullException.cs:10
System.Collections.Generic.Dictionary
Definition
Dictionary.cs:14
System.Collections.Generic.IDictionaryDebugView.IDictionaryDebugView
IDictionaryDebugView(IDictionary< K, V > dictionary)
Definition
IDictionaryDebugView.cs:20
System.Collections.Generic.IDictionaryDebugView._dict
readonly IDictionary< K, V > _dict
Definition
IDictionaryDebugView.cs:7
System.Collections.Generic
Definition
IHashKeyCollection.cs:1
System.Diagnostics.DebuggerBrowsableState
DebuggerBrowsableState
Definition
DebuggerBrowsableState.cs:4
System.Diagnostics
Definition
AggregationManager.cs:6
System.ExceptionArgument.dictionary
@ dictionary
System.ExceptionArgument.array
@ array
source
System.Collections
System.Collections.Generic
IDictionaryDebugView.cs
Generated by
1.10.0