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

◆ Current [1/2]

T System.ArraySegment< T >.Enumerator.Current
get

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

Definition at line 22 of file ArraySegment.cs.

23 {
24 get
25 {
26 if (_current < _start)
27 {
28 ThrowHelper.ThrowInvalidOperationException_InvalidOperation_EnumNotStarted();
29 }
30 if (_current >= _end)
31 {
32 ThrowHelper.ThrowInvalidOperationException_InvalidOperation_EnumEnded();
33 }
34 return _array[_current];
35 }
36 }