C# 检测字符串是否为数字

                 long n;
              1. bool isNumeric = long.TryParse(temp[0], out n);
        2.
var ss = temp[0].All(char.IsDigit);

猜你喜欢

转载自www.cnblogs.com/enych/p/9328474.html