/// <summary> /// Parses the string argument as a boolean. The {@code boolean} /// returned represents the value {@code true} if the string argument /// is not {@code null} and is equal, ignoring case, to the string /// {@code "true"}. <para> /// Example: {@code Boolean.parseBoolean("True")} returns {@code true}.<br> /// Example: {@code Boolean.parseBoolean("yes")} returns {@code false}. /// /// </para> /// </summary> /// <param name="s"> the {@code String} containing the boolean /// representation to be parsed </param> /// <returns> the boolean represented by the string argument /// @since 1.5 </returns> public static bool ParseBoolean(String s) { return((s != null) && s.EqualsIgnoreCase("true")); }