Terraria v1.4.4.9
Terraria source code documentation
All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events Macros

◆ GetValue() [2/8]

object? System.Array.GetValue ( int index1,
int index2 )
inline

Definition at line 1002 of file Array.cs.

1003 {
1004 if (Rank != 2)
1005 {
1006 ThrowHelper.ThrowArgumentException(ExceptionResource.Arg_Need2DArray);
1007 }
1008 Span<int> span = stackalloc int[2] { index1, index2 };
1010 }
object InternalGetValue(nint flattenedIndex)
unsafe nint GetFlattenedIndex(ReadOnlySpan< int > indices)
Definition Array.cs:807

References System.Array.GetFlattenedIndex(), System.index1, System.index2, System.Array.InternalGetValue(), System.Array.Rank, and System.ThrowHelper.ThrowArgumentException().