Color Specification class in c# is giving me error : The non-generic type-or-method 'identifier' cannot be used with type arguments
i am learning design patterns in c# language, so i wrote class which filters the products by color(enum). I used interfaces Ispecification and Ifilter which take T as generic type. here is the code i wrote public interface ISpecification<T> { public bool IsSatisfied(T t); } public interface IFilter<T> { IEnumerable<T> Filter(IEnumerable<T> items, ISpecification<T> specification); }… Read More Color Specification class in c# is giving me error : The non-generic type-or-method 'identifier' cannot be used with type arguments