public static Boolean IsBoolean(string input) { Boolean booleanVal; return Boolean.TryParse(input, out booleanVal); }