Learning, net extract - C # verifies how the input is digital

xiaoxiao2021-03-30  213

Static Bool IsNumeric (String Str) {IF (Str == Null || Str.Length == 0) Return False; Foreach (Char C in Str) {i (! char.isumber (c)) {Return False;}} Return True;}

Reposted in: http://www.xmaspx.com/blogs/hwenfa/archive/790b2aa1c604438cb33a30e8c02820c2.aspx

转载请注明原文地址:https://www.9cbs.com/read-130509.html

New Post(0)