Playtomic.JSON.IsNumeric C# (CSharp) Method

IsNumeric() protected method

Determines if a given object is numeric in any way (can be integer, double, etc). C# has no pretty way to do this.
protected IsNumeric ( object o ) : bool
o object
return bool
        protected bool IsNumeric(object o)
        {
            try {
                Double.Parse(o.ToString());
            } catch (Exception) {
                return false;
            }
            return true;
        }