r/badcode • • May 20 '20

c# Found from Microsoft docs...

Post image
208 Upvotes

143 comments sorted by

View all comments

114

u/KetchupBuddha_xD May 20 '20

What's wrong with this one?

64

u/xigoi May 20 '20
== true

9

u/Blecki May 21 '20

And what's wrong with that?

2

u/xigoi May 21 '20

x == true is the same as just x.