Skip to content

Instantly share code, notes, and snippets.

Last active Aug 18, 2017
What would you like to do?
int MagicNumber(string number)
int result = 0;
if(int.TryParse(number, out result))
return result;
return -1;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment