System.Runtime.Serialization.ExtensionDataReader.MoveToAttribute C# (CSharp) Method

MoveToAttribute() public method

public MoveToAttribute ( string name, string namespaceURI ) : bool
name string
namespaceURI string
return bool
        public override bool MoveToAttribute(string name, string namespaceURI)
        {
            if (IsXmlDataNode)
                return _xmlNodeReader.MoveToAttribute(name, _ns);

            for (int i = 0; i < _element.attributeCount; i++)
            {
                AttributeData attribute = _element.attributes[i];
                if (attribute.localName == name && attribute.ns == namespaceURI)
                {
                    MoveToAttribute(i);
                    return true;
                }
            }

            return false;
        }

Same methods

ExtensionDataReader::MoveToAttribute ( string name ) : bool
ExtensionDataReader::MoveToAttribute ( int index ) : void