title: If all elements in bool array are true?
body: <p>I'm having difficulty using the <code>array.All&lt;&gt;</code> function. </p>
  
  <pre><code>private bool noBricksLeft() {
      bool[] dead = new bool[brick.Length];
  
      for (int i = 0; i &lt; brick.GetLength(0); i++) {
          if (brickLocation[i, 2] == 0)
              dead[i] = true;
          else
              continue; // move onto the next brick
      }
  
      if (dead.All(dead[] == true)) // IF ALL OF THE ELEMENTS ARE TRUE
          return true;
      else
          return false;
  }
  </code></pre>
  
  <p>I'm wondering how I can achieve <code>if (dead.All(dead[] == true))</code>?</p>