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

◆ Index() [1/2]

System.Index.Index ( int value,
bool fromEnd = false )
inline

Definition at line 29 of file Index.cs.

30 {
31 if (value < 0)
32 {
33 ThrowHelper.ThrowValueArgumentOutOfRange_NeedNonNegNumException();
34 }
35 if (fromEnd)
36 {
37 _value = ~value;
38 }
39 else
40 {
41 _value = value;
42 }
43 }
readonly int _value
Definition Index.cs:8

References System.Index._value, System.ThrowHelper.ThrowValueArgumentOutOfRange_NeedNonNegNumException(), and System.value.

Referenced by System.Index.Equals(), System.Index.FromEnd(), and System.Index.FromStart().