Cake.Diagnostics.Formatting.FormatParser.IsNumeric C# (CSharp) Метод

IsNumeric() приватный статический Метод

private static IsNumeric ( string value ) : bool
value string
Результат bool
        private static bool IsNumeric(string value)
        {
            if (string.IsNullOrWhiteSpace(value))
            {
                return false;
            }
            foreach (var character in value)
            {
                if (!char.IsDigit(character))
                {
                    return false;
                }
            }
            return true;
        }