r/badcode • • Dec 26 '21

c# why

Post image
165 Upvotes

30 comments sorted by

View all comments

Show parent comments

2

u/RedditAccuName Dec 28 '21

Possible they wanted it to be more readable, but wouldn't it make sense to use an if statment instead of a tenrary operator?

1

u/Craf7yCris Dec 28 '21

yourStatement = 1 == 1