Quantcast
Channel: FlexiCoder Blog » .Net code
Viewing all articles
Browse latest Browse all 10

C# – IsNumeric

$
0
0

Use the TryParse method to determine if a value is numeric

int retNum;
if (Int32.TryParse(BookId, System.Globalization.NumberStyles.Any, System.Globalization.NumberFormatInfo.InvariantInfo, out retNum))
{
    //Is numeric
}


Viewing all articles
Browse latest Browse all 10

Trending Articles