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

◆ Current [2/2]

char System.CharEnumerator.Current
get

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

Definition at line 16 of file CharEnumerator.cs.

17 {
18 get
19 {
20 if (_index == -1)
21 {
22 throw new InvalidOperationException(SR.InvalidOperation_EnumNotStarted);
23 }
24 if (_index >= _str.Length)
25 {
26 throw new InvalidOperationException(SR.InvalidOperation_EnumEnded);
27 }
28 return _currentElement;
29 }
30 }