System.Xml.XmlTextReaderImpl.GetAttribute C# (CSharp) Method

GetAttribute() public method

public GetAttribute ( string name ) : string
name string
return string
        public override string GetAttribute(string name)
        {
            int i;
            if (name.IndexOf(':') == -1)
            {
                i = GetIndexOfAttributeWithoutPrefix(name);
            }
            else
            {
                i = GetIndexOfAttributeWithPrefix(name);
            }
            return (i >= 0) ? _nodes[i].StringValue : null;
        }

Same methods

XmlTextReaderImpl::GetAttribute ( int i ) : string
XmlTextReaderImpl::GetAttribute ( string localName, string namespaceURI ) : string

Usage Example

Esempio n. 1
0
 public override string?GetAttribute(string name)
 {
     return(_impl.GetAttribute(name));
 }
XmlTextReaderImpl