Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
var inner = PredicateBuilder.False<Product>();
inner = inner.Or(p => p.Description.Contains ("foo"));
inner = inner.Or(p => p.Description.Contains ("far"));
var outer = PredicateBuilder.True<Product>();
outer = outer.And(p => p.Price > 100);
outer = outer.And(p => p.Price < 1000);
outer = outer.And(inner);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.