Extension on IList<T> on specific interfaces

Post date: Sep 7, 2009 6:41:56 AM

public static class Extensions { public static IList<T> GetChanges<T>(this IList<T> list) where T : ICloneable, IBaseEntity { return list.Where(x => x.HasChanges()).ToList<T>(); } }