ClrPlus.Core.Extensions.StringExtensions.IsNegative C# (CSharp) Method

IsNegative() public static method

Determines whether the specified text is equal to some value indicated negative/off/false/no (ignoring case).
public static IsNegative ( this text ) : bool
text this The text.
return bool
        public static bool IsNegative(this string text) {
            switch((text ?? "").ToLower()) {
                case "false":
                case "no":
                case "n":
                case "0":
                case "disabled":
                case "off":
                case "negative":
                    return true;
            };
            return false;
        }