Guest User

Untitled

a guest
May 25th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. using System;
  2. using System.Linq.Expressions;
  3.  
  4. namespace Webdevelopment.Hif.Data
  5. {
  6. public class AdHocSpecification<T> : Specification<T>
  7. {
  8. private readonly Expression<Func<T, bool>> _specification;
  9.  
  10. public AdHocSpecification(Expression<Func<T, bool>> specification)
  11. {
  12. _specification = specification;
  13. }
  14.  
  15. public override Expression<Func<T, bool>> AsExpression()
  16. {
  17. return _specification;
  18. }
  19. }
  20. }
Add Comment
Please, Sign In to add comment