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

GetAttribute() public method

public GetAttribute ( int i ) : string
i int
return string
        public override string GetAttribute(int i)
        {
            if (i < 0 || i >= _attrCount)
            {
                throw new ArgumentOutOfRangeException(nameof(i));
            }
            return _nodes[_index + i + 1].StringValue;
        }

Same methods

XmlTextReaderImpl::GetAttribute ( string name ) : string
XmlTextReaderImpl::GetAttribute ( string localName, string namespaceURI ) : string

Usage Example

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