System.Xml.XsdCachingReader.GetAttribute C# (CSharp) Méthode

GetAttribute() public méthode

public GetAttribute ( string name, string namespaceURI ) : string
name string
namespaceURI string
Résultat string
        public override string GetAttribute(string name, string namespaceURI)
        {
            namespaceURI = (namespaceURI == null) ? string.Empty : _coreReaderNameTable.Get(namespaceURI);
            name = _coreReaderNameTable.Get(name);
            ValidatingReaderNodeData attribute;
            for (int i = 0; i < _attributeCount; i++)
            {
                attribute = _attributeEvents[i];
                if (Ref.Equal(attribute.LocalName, name) && Ref.Equal(attribute.Namespace, namespaceURI))
                {
                    return attribute.RawValue;
                }
            }
            return null;
        }

Same methods

XsdCachingReader::GetAttribute ( int i ) : string
XsdCachingReader::GetAttribute ( string name ) : string