CSharp examples for System.Collections.Generic:ICollection
Remove Range from ICollection
using System.Threading.Tasks; using System.Text; using System.Linq; using System.Collections.ObjectModel; using System.Collections.Generic; using System;//from w w w . j av a 2s .c om using PokemonGo.Bot.MVVMLightUtils; public class Main{ public static void RemoveRange<T>(this ICollection<T> source, IEnumerable<T> items) { foreach (var item in items) { source.Remove(item); } } }