Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
DictionaryEnumerator.cs
Go to the documentation of this file.
2
4
5internal sealed class DictionaryEnumerator<TKey, TValue> : IDictionaryEnumerator, IEnumerator where TKey : notnull
6{
8
10
11 public object Key => _inner.Current.Key;
12
13 public object? Value => _inner.Current.Value;
14
15 public object Current => Entry;
16
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}
readonly IEnumerator< KeyValuePair< TKey, TValue > > _inner
DictionaryEnumerator(IEnumerator< KeyValuePair< TKey, TValue > > inner)