Out of interest, is it safe to assume that if Int32.TryParse(String, Int32)
fails, then the int argument will remain unchanged? For example, if I want my integer to have a default value, which would be wiser?
int type;
if (!int.TryParse(someString, out type))
type = 0;
OR
int type = 0;
int.TryParse(someString, out type);