ExcelFormulaParser.Engine.Excel.Functions.ExcelFunction.IsNumeric C# (CSharp) Method

IsNumeric() protected method

protected IsNumeric ( object val ) : bool
val object
return bool
        protected bool IsNumeric(object val)
        {
            if (val == null) return false;
            return val.GetType() == typeof(int) || val.GetType() == typeof(double) || val.GetType() == typeof(decimal);
        }