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

◆ MoveNext()

bool System.Collections.Generic.Dictionary< TKey, TValue >.Enumerator.MoveNext ( )
inline

Implements System.Collections.IEnumerator.

Definition at line 211 of file Dictionary.cs.

212 {
213 if (_version != _dictionary._version)
214 {
215 ThrowHelper.ThrowInvalidOperationException_InvalidOperation_EnumFailedVersion();
216 }
217 while ((uint)_index < (uint)_dictionary._count)
218 {
219 ref Entry reference = ref _dictionary._entries[_index++];
220 if (reference.next >= -1)
221 {
222 _current = new KeyValuePair<TKey, TValue>(reference.key, reference.value);
223 return true;
224 }
225 }
227 _current = default(KeyValuePair<TKey, TValue>);
228 return false;
229 }
DictionaryEntry IDictionaryEnumerator. Entry
readonly Dictionary< TKey, TValue > _dictionary

References System.Collections.Generic.Dictionary< TKey, TValue >.Dictionary(), System.Collections.Generic.Dictionary< TKey, TValue >.Enumerator._current, System.Collections.Generic.Dictionary< TKey, TValue >.Enumerator._dictionary, System.Collections.Generic.Dictionary< TKey, TValue >.Enumerator._index, System.Collections.Generic.Dictionary< TKey, TValue >.Enumerator._version, and System.ThrowHelper.ThrowInvalidOperationException_InvalidOperation_EnumFailedVersion().