title: How to compare two lists and find the mismatch them in c#?
body: <p>I have two list namely, list1 and list2</p>
  
  <p>Suppose if my list1 has the following elements,</p>
  
  <pre><code>"first", "second","third"
  </code></pre>
  
  <p>and my list2 has the following elements,</p>
  
  <pre><code>"element first is present here"
  "elements are present in second"
  </code></pre>
  
  <p>So in this case, the string "first" and "second" are present in the list2.(but not exactly the same as in variablelist).</p>
  
  <p>So in this case, how can I except "first" and "second" and show my result as, only "third" element is not present in the list2?</p>
  
  <p>I am using the following code</p>
  
  <pre><code>var inOnlyVariableList = list1.Except(list2).ToList();
  </code></pre>
  
  <p>Thanks in Advance</p>