text: public static bool equals(byte[] array1, byte[] array2, int length){if (array1 == array2){return true;}if (array1 == null || array2 == null || array1.Length < length || array2.Length <length){return false;}{for (int i = 0; i < length; i++){if (array1[i] != array2[i]){return false;}}}return true;}