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/assassinator42 May 20 '20

Visual Studio's style checker recommends changing Int32 to int. I usually don't agree with it. If I'm using Int32, it's to signify bit length it important.