Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ GetAttribute() [1/4]

override string System.Xml.XmlSubtreeReader.GetAttribute ( int i)
inline

Definition at line 303 of file XmlSubtreeReader.cs.

304 {
306 {
307 throw new ArgumentOutOfRangeException("i");
308 }
309 int attributeCount = reader.AttributeCount;
310 if (i < attributeCount)
311 {
312 return reader.GetAttribute(i);
313 }
314 if (i - attributeCount < _nsAttrCount)
315 {
316 return _nsAttributes[i - attributeCount].value;
317 }
318 throw new ArgumentOutOfRangeException("i");
319 }
string? GetAttribute(string name)

References System.Xml.XmlSubtreeReader._nsAttrCount, System.Xml.XmlSubtreeReader._nsAttributes, System.Xml.XmlReader.AttributeCount, System.Xml.XmlReader.GetAttribute(), System.Xml.XmlSubtreeReader.InAttributeActiveState, System.Xml.XmlWrappingReader.reader, and System.Xml.XmlSubtreeReader.NodeData.value.