long n; 1. bool isNumeric = long.TryParse(temp[0], out n);
2. var ss = temp[0].All(char.IsDigit);
C# 检测字符串是否为数字
猜你喜欢
转载自www.cnblogs.com/enych/p/9328474.html
今日推荐
周排行