title: Using object.Equals to compare two float[] array-elements are equal
body: <p>I have two <code>float[]</code> objects.  Without writing a for-loop, I want to compare my two 1D arrays to see if they are equal numerically or not.</p>
  
  <p>When I run the following code (as all elements are equal), it doesn't go through the if-statement and show the message.</p>
  
  <p>How should I apply the <strong>Equals</strong> command to work properly?<br>
  Is there any compare-command I could use?</p>
  
  <pre><code> Random r1 = new Random(1);
     int rndNumber= r1.Next(10);
     float[] m = Enumerable.Repeat((float)rndNumber, 180).ToArray();
     float[] m2 = Enumerable.Repeat((float)rndNumber, 180).ToArray();
     if (m.Equals(m2))
      {
      MessageBox.Show("we are equal");
     }
  </code></pre>