2 using System.Collections.Generic;
5 using erminas.SmartAPI.CMS;
7 namespace erminas.SmartAPI.Utils
9 public static class LinqExtension
11 public static void Delete<T>(
this IEnumerable<T> collection) where T :
IDeletable
13 foreach (var t
in collection)
19 public static void Delete<T>(
this IEnumerable<T> collection, Func<T, bool> predicate) where T :
IDeletable
21 foreach (var t
in collection.Where(predicate))