Java.Util.Arrays.DeepEquals Method
Returns true if the two given arrays are deeply equal to one another.

Syntax

[Android.Runtime.Register("deepEquals", "([Ljava/lang/Object;[Ljava/lang/Object;)Z", "")]
public static bool DeepEquals (Java.Lang.Object[] array1, Java.Lang.Object[] array2)

Parameters

array1
the first Object array.
array2
the second Object array.

Returns

Documentation for this section has not yet been entered.

Remarks

Returns true if the two given arrays are deeply equal to one another. Unlike the method equals(Object[] array1, Object[] array2), this method is appropriate for use for nested arrays of arbitrary depth.

Two array references are considered deeply equal if they are both null, or if they refer to arrays that have the same length and the elements at each index in the two arrays are equal.

Two null elements element1 and element2 are possibly deeply equal if any of the following conditions satisfied:

element1 and element2 are both arrays of object reference types, and Arrays.deepEquals(element1, element2) would return true.

element1 and element2 are arrays of the same primitive type, and the appropriate overloading of Arrays.equals(element1, element2) would return true.

element1 == element2

element1.equals(element2) would return true.

Note that this definition permits null elements at any depth.

If either of the given arrays contain themselves as elements, the behavior of this method is uncertain.

[Android Documentation]

Requirements

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