摘要: c#判断string是否为数字 有人提议用int.Parse(string)的方法,然后通过捕获异常来判断返回的值。更好的方法是用正则表达式:public int IsNumeric(string str){ int i; if(str != null && Regex.IsMatch(str,@" 阅读全文
posted @ 2022-10-18 00:40 柳絮漫天 阅读(4477) 评论(0) 推荐(0) 编辑