Search This Blog

Loading...

isnumeric c#

Following function works like analog to vb isNumeric function
and checks that every character entered into myTextField is digit.


if (myTextField.Text.All(Char.IsDigit)){
// is numeric
}else{
// is not numeric
}

0 comments: