title: How to filter the list of object with list of object?
body: <p>I want to try to filter a list of objects with a list of objects that somehow can't implement properly. Is there an extension that can be used in filtering an object with objects?</p>
  <p>What I try,</p>
  <pre><code>using System.Collections.Generic;
  using System.Linq;
  
  namespace MyTests
  {
      internal class Program
      {
          private static void Main(string[] args)
          {
              var employees = new List&lt;Employee&gt;();
  
              employees.AddRange(new List&lt;Employee&gt;
              {
                  new Employee
                  {
                      Id = 1,
                      Name = &quot;John Doe&quot;
                  },
                  new Employee
                  {
                      Id = 2,
                      Name = &quot;Smith Doe&quot;
                  },
                  new Employee
                  {
                      Id = 3,
                      Name = &quot;Jane Doe&quot;
                  }
              });
  
              var result = employees.Where(employee =&gt; employee.Name != new string[&quot;John Doe&quot;, &quot;Smith Doe&quot;]);
          }
      }
  
      public class Employee
      {
          public int Id { get; set; }
          public string Name { get; set; }
      }
  }
  </code></pre>
  <p>Expected Result:</p>
  <p>Jane Doe</p>