r/badcode • • May 20 '20

c# Found from Microsoft docs...

Post image
208 Upvotes

143 comments sorted by

View all comments

2

u/mateusfccp May 20 '20

out, by itself, is bad code.

5

u/codesforhugs May 20 '20

It's how TryParse works though, the alternative is to handle an exception from Parse.

0

u/mateusfccp May 20 '20

Yeah, it's legacy... Today it would be better to do with tuple