title: How to find out whether two string arrays are equal to other
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/1546925/comparing-two-liststring-for-equality">Comparing two List&lt;string&gt; for equality</a>  </p>
  </blockquote>
  
  
  
  <p>How can I find out whether two arrays of string are equal to each other?</p>
  
  <p>I used this, but it does not work, even though the contents of both are the same.</p>
  
  <pre><code>string[] array1 = new string[]{"A" , "B"}
  
  string[] array2 = new string[]{"A" , "B"}
  
  if(array1 == array2)  // it return false !!!!
  {
    // 
  }
  </code></pre>