LumiSoft.Net.Core.IsNumber C# (CSharp) Method

IsNumber() public static method

Checks if specified string is number(long).
public static IsNumber ( string str ) : bool
str string
return bool
        public static bool IsNumber(string str)
        {
            try{
                Convert.ToInt64(str);
                return true;
            }
            catch{
                return false;
            }
        }