title: How to use Except method in list in c#
body: <p>I had create a two int type list and assign the items that are only in list1 to list1 using except method. for eg</p>
  
  <pre><code>List&lt;int&gt; list1 = new List&lt;int&gt;();
  List&lt;int&gt; list2 = new List&lt;int&gt;();
  
  list1 = {1,2,3,4,5,6} // get items from the database
  list2 = {3,5,6,7,8}   // get items from the database
  
  list1 = list1.Except(list2); // gives me an error.
  </code></pre>
  
  <p>Please give me suggestion. What is the right way to do it.</p>