2009年6月25日

C#验证数字的几种方法

摘要: 方法一: static bool IsNumeric(string str) { if (str==null || str.Length==0) return false; foreach(char c in str) { if (!Char.IsNumber(c)) { return false; } } return true; } 方法二:private bool IsNumeric(str... 阅读全文

posted @ 2009-06-25 15:28 欣路历程 阅读(508) 评论(0) 推荐(0) 编辑

导航