You better read about Multidimensional arrays and how to iterate over items of Multidimensional arrays.
check
Multidimensional Arrays (C# Programming Guide)[
^]
C# 2D Array[
^]
here
GenerateArray.a
and
Resource.arr1
are 2D arrays and you are iterating over the items and comparing them.
below line compare same item in both arrays.
GenerateArray.a[i, j] != Resource.arr1[i, j]
if above condition not satisfied then you found one item which not machining and return
false
and exist the method.
if all items are machining then your program will come to the return true line and exist the method with return value as
true