I need to check in string.Endswith(\"\") from any of the following operators: +,-,*,/
string.Endswith(\"\")
+,-,*,/
If I have 20 operators I don\'t want to use ||<
||<
If you really want to, you can use De Morgan's laws to replace x || y in your code. One version says:
x || y
!(x || y) == !x && !y
If you want to have the same result, we just need to negate the entire expression twice:
x || y == !!(x || y) == !(!x && !y)