#region 判断是否数字
public bool IsNumberic(string strNum)
{
try
{
//this.wteLog("", false, "测试" + strNum);
Decimal i = System.Convert.ToDecimal(strNum);
//this.wteLog("", false, "测试True" + i);
return true;
}
catch (System.Exception ex)
{
this.wteLog("", false, "" + ex.Message);
//this.wteLog("", false, "测试NO");
return false;
}
}
#endregion
C# 判断是否数字
最新推荐文章于 2024-05-11 15:14:13 发布