public static IsPositive ( this text ) : bool | ||
text | this | The text. |
return | 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;
}