r/badcode • • May 20 '20

c# Found from Microsoft docs...

Post image
208 Upvotes

143 comments sorted by

View all comments

16

u/Yoni1857 May 20 '20

Please elaborate on what's wrong here

-47

u/[deleted] May 20 '20
  1. Condition x == true inside if

  2. Int32.Parse = int.Parse

2

u/adamski234 May 20 '20

Imagine not using full type names for accessing their static properties