I'm currently working on a project and I've seen this line in multiple classes.
int.Parse(race); // to trigger any possible errors
Now, I'm guessing they're doing this to throw any possible errors they can, but I don't see this as a good way to do something like this, and I also don't know how to improve on it.
I was wondering if someone coming from a professional background of C# can give me some insight to handling things like this, and how they would handle it?