Skip to content

Instantly share code, notes, and snippets.

@tomwis
Created Aug 18, 2017
Embed
What would you like to do?
int MagicNumber(string number)
{
if(int.TryParse(number, out var result))
{
return result;
}
return -1;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment