Taking the answer from this question; how would we modify the logic to perform a "! StartsWith" ? i.e. simply negating the logical result of the expression call.
Asked
Active
Viewed 39 times
0
-
2How about `Expression.Not`? – thehennyy Oct 18 '18 at 12:41
-
@thehennyy awesome. I was looking in all the wrong places to find a way of doing this. Never thought to search what was available in "Expression". Thanks ! Can you not add your comment as an answer ? :-) – Stringbean68 Oct 18 '18 at 12:56
1 Answers
1
To build a logial not you can use the Expression.Not
method.
Have a look at the msdn for an example:
Creates a UnaryExpression that represents a bitwise complement operation.

thehennyy
- 4,020
- 1
- 22
- 31