Just Code‎ > ‎

Extension on IList<T> on specific interfaces

posted Sep 6, 2009, 11:41 PM by Peter Henell   [ updated Sep 6, 2009, 11:48 PM ]
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>();
       }
   }
Comments