title: How to check if all values in an array are equal
body: <p>The following checks if all values in a string array are equal ignoring the case</p>
  
  <pre><code>string [] StringArray = new string[]{"xxx","xXx","Xxx"}; 
  bool ValuesAreEqual = false;
  for(int i= 0;i&lt;StringArray.Length;i++)
  {
      if(i&gt;=1)
      {
          ValuesAreEqual = StringArray[0].Equals(StringArray[i],StringComparison.InvariantCultureIgnoreCase);
          if(!ValuesAreEqual)
          {
              break;
          }
      }
  }
  </code></pre>
  
  <p>How could I write this using LINQ?</p>