M
Mike P
I'm using this code to check if a user input is of a particular data
type :
try
{
int intUserInput = Convert.ToInt32 (txtUserInput.Text);
}
catch
{
//invalid user input
}
Is there a smarter C# way of doing this?
Thanks,
Mike
type :
try
{
int intUserInput = Convert.ToInt32 (txtUserInput.Text);
}
catch
{
//invalid user input
}
Is there a smarter C# way of doing this?
Thanks,
Mike