title: First match in a collection
body: <p>I want to convert this code to a linq solution. What it does it looks into a collection of customers and see if at least one of the has a middle name. This code works fine, I'm just trying to learn linq, so looking for an alternative solution.:</p>
  
  <pre><code>//Customers - List&lt;Customer&gt;
  private bool checkMiddleName()
  {
      foreach (Customer i in Customers)
      {
          if (i.HasMiddleName == true)
          {
              return true;
          }
      }
      return false;
  }
  </code></pre>
  
  <p>I tried to write something like: <code>(Customers.Foreach(x=&gt;x.HasMiddleName==true)...</code>
  but looks line it's not the method I'm looking for.</p>