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 }