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

GetAndRemoveNonEmptyStringAttributeInternal() private static method

private static GetAndRemoveNonEmptyStringAttributeInternal ( XmlNode node, string attrib, bool fRequired, string &val ) : XmlNode
node System.Xml.XmlNode
attrib string
fRequired bool
val string
return System.Xml.XmlNode
        private static XmlNode GetAndRemoveNonEmptyStringAttributeInternal(XmlNode node, string attrib, bool fRequired, ref string val) {
            XmlNode a = GetAndRemoveStringAttributeInternal(node, attrib, fRequired, ref val);
            if (a != null && val.Length == 0) {
                throw new ConfigurationErrorsException(
                    SR.GetString(SR.Empty_attribute, attrib), a);
            }

            return a;
        }