creating array that compare arrays and state if they are true or false : how i can i improve this array so they compare in the same order. I'm comparing two arrays


enter code here
       
        static bool CompareArray(int[] a, int[] b)
          {
            bool areLenghtsEqual = a.Length == b.Length;

            if (!areLenghtsEqual)
            {
                return false;
            }

            

            return true;
        }