I thought I was going crazy but Resharper insists that the following expression is always false:
bucket.PredicateExpression.Add(
MyTableFields.MyBool == true);
It recommends:
bucket.PredicateExpression.Add(false);
...which is dumb.
After some pointless refactoring my original code (and the predicate) is correct. Resharper has got this wrong. Bit annoying though as I put a lot of faith in Resharper and in most cases it seems to know better than I do.
Would be nice to find something which satisfies Resharper as i'm adding a lot of filtering code to my RESTful services and each time I add a bool predicate I get this warning.