Skip to content

Instantly share code, notes, and snippets.

@tomwis
Last active Aug 18, 2017
Embed
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