title: Linq Intersect with arrays
body: <p>Im getting a table Tags from the db.</p>
  
  <p>the table has columns ID and TagName</p>
  
  <p>I'm doing something like this to get a list of strings:</p>
  
  <pre><code>var taglist = Model.Tags.Select(x =&gt; x.TagName.ToLower()).ToArray();
  </code></pre>
  
  <p>then I'm comparing against another string array to get the strings that occur in both:</p>
  
  <pre><code>var intersectList = tagList.Intersect(anotherList);
  </code></pre>
  
  <p>I have my list, but now I also want the ID of each item remaining in the intersect list that corresponds to the tagList. (can just be an int array)</p>
  
  <p>Can anyone help with a good way to do this?</p>