Array.SetValue Method (Object, Int32, Int32)
Sets a value to the element at the specified position in the two-dimensional Array. The indexes are specified as 32-bit integers.
Assembly: mscorlib (in mscorlib.dll)
The new value for the specified element.
A 32-bit integer that represents the first-dimension index of the Array element to set.
The current Array does not have exactly two dimensions.
value cannot be cast to the element type of the current Array.
Either index1 or index2 is outside the range of valid indexes for the corresponding dimension of the current Array.
For more information about conversions, see Convert.
This method is an O(1) operation.
If SetValue is used to assign null to an element of an array of value types, all fields of the element are initialized to zero. The value of the element is not a null reference, and cannot be found by searching for a null reference.
Available since 1.1