摘要: 我们在程序设计中经常会遇到需要限制控件输入的情况,比如金额只能是数值,不能是其他的类型等等,像这样的验证有许多许多,所以为了更好的维护和更快的编写代码,我对验证进行了一些封装。下面就是一些简单的代码了:usingSystem.Text.RegularExpressions; namespaceTrevan.Helper.Algorithm{///<summary>///用来判断字符串是否符合规则///</summary>publicstaticclassContentJudge{///<summary>///用来判断字符串是否是正整数///</summ 阅读全文
posted @ 2013-05-11 10:20 trevan 阅读(600) 评论(1) 推荐(1) 编辑