public static bool IsNumeric(string itemValue)
        {
            try
            {
                int i = Convert.ToInt32(itemValue);
                return true;
            }
            catch
            {
                return false;
            }
        }这样一个自定义函数用来检测传递的参数是否全数字可以吗?如果不行的话改怎么修改?