Transformed MemberComparer class to use ISpecification<T>.