title: Linq query to get an object from list of lists
body: <p>I have a AccountContacts class that contains a data member contacts which is a list of type ContactInfo. </p>
  
  <p>Each ContactInfo class has two members. 1. List that holds ContactTypes (strings) 2. A Contact Object.</p>
  
  <p>so, it looks like</p>
  
  <pre><code>Class AccountContacts
  {
    List&lt;ContactInfo&gt; Contacts;
  }
  
  Class ContactInfo
  {
     List&lt;string&gt; ContactType;
     Contact UserContact;
  }
  </code></pre>
  
  <p>now If I have an AccountContacts object (ac), how can I get a Contact object where the ContactType list in ContactInfo contains a specific string. </p>
  
  <p>And by the way, each ContactType list is distinct to other. So at a time on Contact object can be returned.</p>
  
  <p>I tried some thing like this. </p>
  
  <pre><code>Contact myContact = ac.Contacts.Find(c =&gt; c.ContactType.Contains("specificString")).UserContact;
  </code></pre>
  
  <p>I am able to get myContact. just want to know is there any better way of doing this?</p>