title: Where clause in Linq in List c#
body: <p>I have a struct like this:</p>
  
  <pre><code>struct Test
  {
     string name;
     string family;
     public Test...
  }
  </code></pre>
  
  <p>in my code I have a list of this struct:</p>
  
  <pre><code>List&lt;Test&gt; testList=new List&lt;Test&gt;();
  </code></pre>
  
  <p>I have a linq expression like this:</p>
  
  <pre><code>var list =testList.Select(n=&gt;n.Name);
  </code></pre>
  
  <p>but how can I filter this selection by Family of the testList? something like this:</p>
  
  <pre><code>var list=testList.Select(n=&gt;n.Name).Where(f=&gt;f.Family=="");
  </code></pre>
  
  <p>this Where clause just apply on selected Names which are a list of string</p>
  
  <p>Any ideas how to do that?</p>