Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ Current [2/2]

object? IEnumerator. System.Collections.Generic.Dictionary< TKey, TValue >.Enumerator.Current
get

Implements System.Collections.Generic.IEnumerator< out T >.

Definition at line 150 of file Dictionary.cs.

151 {
152 get
153 {
154 if (_index == 0 || _index == _dictionary._count + 1)
155 {
156 ThrowHelper.ThrowInvalidOperationException_InvalidOperation_EnumOpCantHappen();
157 }
158 if (_getEnumeratorRetType == 1)
159 {
160 return new DictionaryEntry(_current.Key, _current.Value);
161 }
162 return new KeyValuePair<TKey, TValue>(_current.Key, _current.Value);
163 }
164 }
readonly Dictionary< TKey, TValue > _dictionary