I\'d like to know if there is a \"safe\" way to convert an object to an int, avoiding exceptions.
int
I\'m looking for something like public static bo
public static bo
Return a nullable int. that way you know whether you parsed 0.
int? value = int.TryParse(stringValue, out int outValue) ? outValue : default(int?);