using System.Collections.Generic; namespace BFR.Helpers { public static class IListExtensions { public static void ReplaceAll(this IList list, IEnumerable replacement) { list.Clear(); foreach (var t in replacement) list.Add(t); } } }