-
Notifications
You must be signed in to change notification settings - Fork 166
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Not(). Possibility to negate the whole predicate. (#136)
* Not(). Possibility to negate the whole predicate. Usage: var predicate = PredicateBuilder.New<Product>(true); predicate = predicate.And(x => x.Discontinued) // Discontinued == true predicate = predicate.And(x => x.Id > 10) // Discontinued == true && Id > 10 predicate = predicate.Not(); // !(Discontinued == true && Id > 10) I am currently using an implementation that uses Reflection, but this way is better. * Request : Can you please use { and } for if-statements? Co-authored-by: [email protected] <Lucas Diogo Deon>
- Loading branch information
1 parent
e438081
commit cac8b4e
Showing
3 changed files
with
67 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters