Software Bugs and Solutions
Home
Friday, 1 June 2012
Check If A String Value Is Numeric
static
bool
IsNumber(
string
value)
{
// Return true if this is a number.
int
number1;
return
int
.TryParse(value,
out
number1);
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment