public static bool IsNumber(string strNumber) { Regex regex = new Regex("[^0-9]"); return !regex.IsMatch(strNumber); }
posted on 2011-07-02 20:53 人在程序 阅读(239) 评论(0) 编辑 收藏 举报
Powered by: 博客园 Copyright © 2024 人在程序 Powered by .NET 8.0 on Kubernetes