A confusing blog title like this is to remind why using
! in programming sometimes confuses other readers of your program. Let alone confusing people, sometimes due to big screens, rushing code review, different fonts etc., it is easy to miss
! in your statement.
I have been practicing empty string checks in C# using following convention for better readability.
if(string.IsNullOrWhiteSpace(myValue) == false) doSomething();
However, recently I switched to following. I believe this is much easier to read.
if(string.IsNullOrWhiteSpace(myValue) is false) doSomething();
Most probably you are still using the below and this is not incorrect.
It is just a matter of taste…
Detailed deep dive can be found on official documentation: