title: Remove item from list using linq
body: <p>How to remove item from list using linq ?.</p>
  
  <p>I have a list of items and each item it self having a list of other items now I want to chaeck if other items contains any items of passed list so main item should be remove.
  Please check code for more clarity. </p>
  
  <pre><code>public Class BaseItems
  {
      public int ID { get; set; }
      public List&lt;IAppointment&gt; Appointmerts { get; set; }
  }
  
  Public DeleteApp(List&lt;IAppointment&gt; appointmentsToCheck)
  {
     List&lt;BaseItems&gt; _lstBase ; // is having list of appointments
  
     //now I want to remove all items from _lstBase  which _lstBase.Appointmerts contains 
     any item of appointmentsToCheck (appointmentsToCheck item and BaseItems.Appointmerts 
     item is having a same reference)
  
     //_lstBase.RemoveAll(a =&gt; a.Appointmerts.Contains( //any item from appointmentsToCheck));
  
  }
  </code></pre>