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; }