System.CodeDom.Compiler.HandlerBase.GetAndRemoveNonNegativeAttributeInternal C# (CSharp) Method

GetAndRemoveNonNegativeAttributeInternal() private static method

private static GetAndRemoveNonNegativeAttributeInternal ( XmlNode node, string attrib, bool fRequired, int &val ) : XmlNode
node System.Xml.XmlNode
attrib string
fRequired bool
val int
return System.Xml.XmlNode
        private static XmlNode GetAndRemoveNonNegativeAttributeInternal(XmlNode node, string attrib, bool fRequired, ref int val) {
            XmlNode a = GetAndRemoveIntegerAttributeInternal(node, attrib, fRequired, ref val);

            if (a != null && val < 0) {
                throw new ConfigurationErrorsException(
                    SR.GetString(SR.Invalid_nonnegative_integer_attribute, attrib), a);
            }

            return a;
        }