public static boolean equals(Object[] array1, Object[] array2) {if (array1 == array2) {return true;}if (array1 == null || array2 == null || array1.length != array2.length) {return false;}for (int i = 0; i < array1.length; i++) {Object e1 = array1[i], e2 = array2[i];if (!(e1 == null ? e2 == null : e1.equals(e2))) {return false;}}return true;}

public static bool equals(object[] array1, object[] array2){if (array1 == array2){return true;}if (array1 == null || array2 == null || array1.Length != array2.Length){return false;}{for (int i = 0; i < array1.Length; i++){object e1 = array1[i];object e2 = array2[i];if (!(e1 == null ? e2 == null : e1.Equals(e2))){return false;}}}return true;}
