Java.Lang.Reflect.Array.Set Method
Sets the element of the array at the specified index to the value.

Syntax

[Android.Runtime.Register("set", "(Ljava/lang/Object;ILjava/lang/Object;)V", "")]
public static void Set (Java.Lang.Object array, int index, Java.Lang.Object value)

Parameters

array
Documentation for this section has not yet been entered.
index
Documentation for this section has not yet been entered.
value
Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Lang.NullPointerExceptionif array == null
Java.Lang.IllegalArgumentExceptionif array is not an array or the value cannot be converted to the array type by a widening conversion
Java.Lang.ArrayIndexOutOfBoundsExceptionif index = array.length

Remarks

Sets the element of the array at the specified index to the value. Equivalent to array[index] = value. If the array component is a primitive type, the value is automatically unboxed.

[Android Documentation]

Requirements

Namespace: Java.Lang.Reflect
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1