private void _removeGSRange(IEnumerable <GameSource> sources) { lock (GSList) { GSList.ExceptWith(sources); List <uint> sids = new List <uint>(); foreach (var source in sources) { sids.Add(source.SID); } var adapters = GSAdapterList.FindAll(sids.ToArray(), (sid, adapter) => sid.CompareTo(adapter.SID)); GSAdapterList.ExceptWith(adapters); } }
public override void Recycle(IEnumerable <T> items) { base.Recycle(items); tracker.ExceptWith(items); }