title: In C#, how can i determine if a list has any item from another list?
body: <p>I have a list:</p>
  
  <pre><code>var list = new List&lt;string&gt;();
  list.Add("Dog");
  list.Add("Cat");
  list.Add("Bird");
  
  var list2 = new List&lt;string&gt;();
  list2.Add("Dog");
  list2.Add("Cat"):
  
  if (list.ContainsAny(list2))
  {
        Console.Write("At least one of the items in List2 exists in list1)"
  }
  </code></pre>