摘要: 有人提议用int.Parse(string)的方法,然后通过捕获异常来判断返回的值。更好的方法是用正则表达式: public int IsNumeric(string str) { int i; if(str != n... 阅读全文
posted @ 2009-01-10 12:15 scgw 阅读(2618) 评论(0) 推荐(1) 编辑