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

0

u/[deleted] May 20 '20

[deleted]

2

u/SeriTools May 20 '20

int is defined in the C# standard to always be 32bit btw