示例#1
0
        public bool TryAttribute(string attributeName, out NanoXmlAttribute attribute)
        {
            for (var i = 0; i < Attributes.Count; i++)
            {
                var nanoXmlAttribute = Attributes[i];
                if (nanoXmlAttribute.Name != attributeName)
                {
                    continue;
                }
                attribute = nanoXmlAttribute;
                return(true);
            }

            attribute = null;
            return(false);
        }
示例#2
0
        public bool TryAttribute(string attributeName, out NanoXmlAttribute attribute) {
            for (var i = 0; i < Attributes.Count; i++) {
                var nanoXmlAttribute = Attributes[i];
                if (nanoXmlAttribute.Name != attributeName)
                    continue;
                attribute = nanoXmlAttribute;
                return true;
            }

            attribute = null;
            return false;
        }