Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
![](/static/devrant/img/pipeless-devrant-banner-white.png)
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
nebula18732y@LotsOfCaffeine it's used in xaml. and therefore it shows no references :S
this is production code and in use. Already fixed it though. I couldn't leave it like that. -
Just changing the signature to return bool would be a huge improvement; then at least people would be like "wtf is this" without even having to look at it.
-
@spongessuck some might question why we need a class to invert a boolean in the first place
-
I wonder why are all those checking needed? C# is a very strongly typed language, and all of the time, we know very well what is a method's return value.
Why even need to check if the value's type is a "bool" or "bool?"
Also C# has Convert.ToBoolean if somehow, the value's type is really unknown. -
Earu5712yThat’s very amusing to me, I think the person that wrote this must have banged their head against they keyboard in agony because otherwise why would you add these checks 😂
Related Rants
Found this gem and just wanted to leave it here :-|
rant
c#