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

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

Determines whether the specified text equal to some value indicated on/true/enabled (ignoring case).
public static IsPositive ( this text ) : bool
text this The text.
Результат bool
        public static bool IsPositive(this string text) {
            switch ((text ?? "").ToLower()) {
                case "true":
                case "yes":
                case "y":
                case "1":
                case "enabled":
                case "on":
                case "positive":
                    
                    return true;
            } ;
            return false;
        }