using System; class My { static void Main() { IsNum("xun"); System.Threading .Thread .Sleep (10000); } public static bool IsNum(String str) { for(int i=0; i<str.Length ;i++) { if(!char.IsNumber (str,i)) { Console.Write ("This method is used!!"); return false; } } return true; }
}