private static XmlNode GetAndRemoveStringAttributeInternal(XmlNode node, string attrib, bool fRequired, ref string string_0) { XmlNode andRemoveAttribute = SecUtility.GetAndRemoveAttribute(node, attrib, fRequired); if (andRemoveAttribute != null) { string_0 = andRemoveAttribute.Value; } return(andRemoveAttribute); }
private static XmlNode GetAndRemoveBooleanAttributeInternal(XmlNode node, string attrib, bool fRequired, ref bool bool_0) { XmlNode andRemoveAttribute = SecUtility.GetAndRemoveAttribute(node, attrib, fRequired); if (andRemoveAttribute != null) { if (andRemoveAttribute.Value == "true") { bool_0 = true; } else { if (!(andRemoveAttribute.Value == "false")) { throw new ConfigurationErrorsException(SR.GetString("The '{0}' attribute must be set to 'true' or 'false'.", andRemoveAttribute.Name), andRemoveAttribute); } bool_0 = false; } } return(andRemoveAttribute); }