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

◆ SetValue() [2/8]

void System.Array.SetValue ( object? value,
int index1,
int index2 )
inline

Definition at line 1031 of file Array.cs.

1032 {
1033 if (Rank != 2)
1034 {
1035 ThrowHelper.ThrowArgumentException(ExceptionResource.Arg_Need2DArray);
1036 }
1037 Span<int> span = stackalloc int[2] { index1, index2 };
1039 }
unsafe nint GetFlattenedIndex(ReadOnlySpan< int > indices)
Definition Array.cs:807
void InternalSetValue(object value, nint flattenedIndex)

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