ClrPlus.Core.Extensions.StringExtensions.IsNegative C# (CSharp) Метод

IsNegative() публичный статический Метод

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.
Результат 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;
        }