I have a domain class like this:
public class DomainClass { public virtual string name{get;set;} public virtual IList Notes{get;set;} } >
public class DomainClass { public virtual string name{get;set;} public virtual IList Notes{get;set;} }
You can receive an array of items for removing. Than remove them from list in loop. Look at this sample:
IList list = new List { 1, 2, 3, 4, 5, 1, 3, 5 }; var valuesToRemove = list.Where(i => i == 1).ToArray(); foreach (var item in valuesToRemove) { list.Remove(item); }