System.Configuration.HandlerBase.GetAndRemoveBooleanAttributeInternal C# (CSharp) Метод

GetAndRemoveBooleanAttributeInternal() приватный статический Метод

private static GetAndRemoveBooleanAttributeInternal ( XmlNode node, string attrib, bool fRequired, bool &val ) : XmlNode
node System.Xml.XmlNode
attrib string
fRequired bool
val bool
Результат System.Xml.XmlNode
        private static XmlNode GetAndRemoveBooleanAttributeInternal(XmlNode node, string attrib, bool fRequired, ref bool val) {
            XmlNode a = GetAndRemoveAttribute(node, attrib, fRequired);
            if (a != null) {
                try {
                    val = bool.Parse(a.Value);
                }
                catch (Exception e) {
                    throw new ConfigurationErrorsException(
                            SR.GetString(SR.GetString(SR.Config_invalid_boolean_attribute, a.Name)), 
                            e, a);
                }
            }

            return a;
        }