Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
DictionaryEnumerator.cs
Go to the documentation of this file.
1
using
System.Collections.Generic
;
2
3
namespace
System.Collections.Immutable
;
4
5
internal
sealed
class
DictionaryEnumerator
<TKey, TValue> :
IDictionaryEnumerator
,
IEnumerator
where
TKey :
notnull
6
{
7
private
readonly
IEnumerator<KeyValuePair<TKey, TValue>
>
_inner
;
8
9
public
DictionaryEntry
Entry
=>
new
DictionaryEntry
(
_inner
.
Current
.Key,
_inner
.
Current
.Value);
10
11
public
object
Key
=>
_inner
.
Current
.Key;
12
13
public
object
?
Value
=>
_inner
.
Current
.Value;
14
15
public
object
Current
=>
Entry
;
16
17
internal
DictionaryEnumerator
(
IEnumerator
<
KeyValuePair<TKey, TValue>
> inner)
18
{
19
Requires
.NotNull(inner,
"inner"
);
20
_inner
= inner;
21
}
22
23
public
bool
MoveNext
()
24
{
25
return
_inner
.
MoveNext
();
26
}
27
28
public
void
Reset
()
29
{
30
_inner
.
Reset
();
31
}
32
}
System.Collections.Generic.Dictionary
Definition
Dictionary.cs:14
System.Collections.Immutable.DictionaryEnumerator._inner
readonly IEnumerator< KeyValuePair< TKey, TValue > > _inner
Definition
DictionaryEnumerator.cs:7
System.Collections.Immutable.DictionaryEnumerator.Reset
void Reset()
Definition
DictionaryEnumerator.cs:28
System.Collections.Immutable.DictionaryEnumerator.Entry
DictionaryEntry Entry
Definition
DictionaryEnumerator.cs:9
System.Collections.Immutable.DictionaryEnumerator.MoveNext
bool MoveNext()
Definition
DictionaryEnumerator.cs:23
System.Collections.Immutable.DictionaryEnumerator.Current
object Current
Definition
DictionaryEnumerator.cs:15
System.Collections.Immutable.DictionaryEnumerator.Key
object Key
Definition
DictionaryEnumerator.cs:11
System.Collections.Immutable.DictionaryEnumerator.Value
object? Value
Definition
DictionaryEnumerator.cs:13
System.Collections.Immutable.DictionaryEnumerator.DictionaryEnumerator
DictionaryEnumerator(IEnumerator< KeyValuePair< TKey, TValue > > inner)
Definition
DictionaryEnumerator.cs:17
System.Collections.Immutable.DictionaryEnumerator
Definition
DictionaryEnumerator.cs:6
System.Collections.Immutable.Requires
Definition
Requires.cs:7
System.Collections.IDictionaryEnumerator
Definition
IDictionaryEnumerator.cs:4
System.Collections.IEnumerator.MoveNext
bool MoveNext()
System.Collections.IEnumerator.Current
object Current
Definition
IEnumerator.cs:5
System.Collections.IEnumerator.Reset
void Reset()
System.Collections.IEnumerator
Definition
IEnumerator.cs:4
System.Collections.Generic
Definition
IHashKeyCollection.cs:1
System.Collections.Immutable
Definition
AllocFreeConcurrentStack.cs:4
System.Collections.DictionaryEntry
Definition
DictionaryEntry.cs:9
source
System.Collections.Immutable
System.Collections.Immutable
DictionaryEnumerator.cs
Generated by
1.10.0