I have a method that will receive a string, but before I can work with it, I have to convert it to int. Sometimes it can be null and I ha
string
int
null
Actually you could refactor to
var value = 0; int.TryParse(yourString, out value);
either way you always have a valid integer (if that is the goal)