title: Determine if all elements of a List are true or false
body: <p>i have to chek if all elements of a <code>List&lt;bool&gt;</code> are <code>true</code> or all elements are <code>false</code></p>
  
  <pre><code>List&lt;bool&gt; b1 = new List&lt;bool&gt;() { true, true, true, true }; //valid
  List&lt;bool&gt; b2 = new List&lt;bool&gt;() { false, false, false, false }; //valid
  List&lt;bool&gt; b3 = new List&lt;bool&gt;() { true, false, false, true }; //not valid
  </code></pre>
  
  <p>Is there a Linq approach instead of my current loop?</p>
  
  <pre><code>bool isValid = true;
  for (int i = 1; i &lt; b3.Count; i++)
  {
      if (b3[i] != b3[i - 1])
          isValid = false;
  }
  </code></pre>