//引用正则表达式空间
using System.Text.RegularExpressions;
//具体方法
public bool IsNumeric(string value)
{
return Regex.IsMatch(value, @"^[+-]?\d*[.]?\d*$");
}
C#中判断字符串是否为数字的方法
猜你喜欢
转载自blog.csdn.net/weixin_37983681/article/details/81100745
今日推荐
周排行