C#判断是否数字

    技术2023-04-12  73

                #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

    Processed: 0.010, SQL: 9