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

◆ MoveNext()

bool System.Collections.Hashtable.HashtableEnumerator.MoveNext ( )
inline

Implements System.Collections.IEnumerator.

Definition at line 343 of file Hashtable.cs.

344 {
346 {
347 throw new InvalidOperationException(SR.InvalidOperation_EnumFailedVersion);
348 }
349 while (_bucket > 0)
350 {
351 _bucket--;
353 if (key != null && key != _hashtable._buckets)
354 {
357 _current = true;
358 return true;
359 }
360 }
361 _current = false;
362 return false;
363 }

References System.Collections.Hashtable.HashtableEnumerator._bucket, System.Collections.Hashtable._buckets, System.Collections.Hashtable.HashtableEnumerator._current, System.Collections.Hashtable.HashtableEnumerator._currentKey, System.Collections.Hashtable.HashtableEnumerator._currentValue, System.Collections.Hashtable.HashtableEnumerator._hashtable, System.Collections.Hashtable.HashtableEnumerator._version, System.Collections.Hashtable._version, System.SR.InvalidOperation_EnumFailedVersion, System.Collections.Hashtable.bucket.key, System.key, and System.Collections.Hashtable.bucket.val.