- 1、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
验证身份证号码c#(Verify the identity card number c#)
验证身份证号码c#(Verify the identity card number c#) / / / summary Always verify the identity card, the returned information is correct ID, date of birth, gender / / / /summary Public class ValidataCardNumberResult { / / / summary Just verify through / / / /summary Public, bool, IsSuccess, {set; get;} / / / summary Public sex / / / /summary Public, SexType, Sex, {set; get;} / / / summary / / / birthday format (year month day) / / / /summary Public, String, BirthDate, {set; get;} } #region verifies the identity card number / / / summary Always verify the identity card number / / / /summary param name= value / / / return whether by birth (year month day), sex /param / / / returns/returns Public, static, ValidataCardNumberResult, CheckIdentityCardNumber (this, string, value) { Var result = new, ValidataCardNumberResult (); Var powers = new String[] {7, 9, 10, 5, 8, 4, 2, 1, 6, 3, 7,, 9,,, 10, 2, 4, 5, 8; VaR, new, String[], parityBit, {1, 0, X, 9, 8, 7, 6,, 5, 2, 4, 3,}; If (String.IsNullOrEmpty (value)) return result; (if! (value.Length = 15 || value.Length = = 18)) return result; If (value.Length = 15) { String _id = value; //15 bit, all digital representation Match matchNumber = Regex.Match (value, @ ^\d{15}$); If (... MatchNumber.Success) return result; Var year = _id.Substring (6, 2); Var month = _id.Substring (8, 2); Var day = _id.Substring (10, 2); Var sexBit = _id.Substring (14); Check a / / year / / ^\d{2}$ Match matchYear = Regex.Match (year, @ ^\d{2}$); If (... MatchYear.Success) return result; Check / / month Match matchMonth = Regex.Match (month, @ ^0[1-9]|1[0-2]$); If (... MatchMonth.Success) return result; Check / date Match matchDay = Regex.Match (day, @ ^[0-2][1-9]|3[0-1]|10|20$); If (... MatchDay.Success) return result; Set / sex If (sexBit.ToInt) (%2 = 0) { Result.Sex = SexType.Female; } Else { result: sex = sextype. times. } string strdate = string.format (19 {0} - {1} {2}, year, month, day); birthdate = datetime datetime. now; if (datetime.tryparse (strd
您可能关注的文档
- 身份证格式验证(ID format validation).doc
- 身份证验证(js_javascript_代码)(身份证验证 (js _ javascript _ 代码)).doc
- 身份证验证.js javascript 代码(代码 身份证验证.js javascript).doc
- 跑步与健康(Running and health).doc
- 身份证验证的工具(Authentication tools).doc
- 跑路指南(Running guide).doc
- 身份证验证(ID authentication).doc
- 身在职场,如何高效职企业培训场充电(In the workplace, how efficient enterprise training field charging).doc
- 路易十四时代(Siècle de Louis XIV).doc
- 轧钢工艺流程介绍(Introduction of rolling process).doc
有哪些信誉好的足球投注网站
文档评论(0)