title: C# LINQ Remove multiple objects from a list in single execution
body: <p>It seems quite similar, but my question is quite different. I have a list which consists of objects which are implementation of different interface. 
  I want to delete a particular type's objects, but after passing another criteria. A sample code is given below. </p>
  
  <pre><code> // remove the not required parameters 
  foreach (EndPoint endPoint in endPoints)
  {                 
      var maps = endPoint.EndPointParameters
          .Where(x =&gt; x is IEndPointParamMapCustom)
          .Cast&lt;IEndPointParamMapCustom&gt;()
          .Where(x =&gt; !x.IsActive)
          .ToList();
  
      foreach (var custom in maps)
      {
          endPoint.EndPointParameters.Remove(custom);
      }
  }
  </code></pre>
  
  <p>I want to remove the below foreach loop and remove the objects in the above single LINQ query. Is it possible? 
  Thanks. </p>