text: 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;}