C# string to number C# judge whether the input is a number

C# Determine if the input is a number

1  ///  <summary> 
2  /// Determine whether the input is a number
 3  ///  </summary> 
4  ///  <param name="num"> The string to be judged </param> 
5  ///  <returns ></returns> 
6  static  public  bool VldInt( string num)
 7  {
 8      #region 
9      int ResultNum;
 10      return  int .TryParse(num, out ResultNum);
 11      #endregion 
12 }

http://www.cnblogs.com/zhouzangood/articles/3613738.html

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324930083&siteId=291194637