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

◆ Current

object System.Collections.Hashtable.HashtableEnumerator.Current
get

Implements System.Collections.IEnumerator.

Definition at line 297 of file Hashtable.cs.

298 {
299 get
300 {
301 if (!_current)
302 {
303 throw new InvalidOperationException(SR.InvalidOperation_EnumOpCantHappen);
304 }
305 if (_getObjectRetType == 1)
306 {
307 return _currentKey;
308 }
309 if (_getObjectRetType == 2)
310 {
311 return _currentValue;
312 }
313 return new DictionaryEntry(_currentKey, _currentValue);
314 }
315 }