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

◆ GetAttribute() [1/3]

string System.Xml.XmlNodeReaderNavigator.GetAttribute ( int attributeIndex)
inline

Definition at line 525 of file XmlNodeReaderNavigator.cs.

526 {
528 {
529 return null;
530 }
531 switch (_curNode.NodeType)
532 {
533 case XmlNodeType.Element:
535 return ((XmlElement)_curNode).Attributes[attributeIndex].Value;
536 case XmlNodeType.Attribute:
538 return ((XmlElement)_elemNode).Attributes[attributeIndex].Value;
539 case XmlNodeType.XmlDeclaration:
542 case XmlNodeType.DocumentType:
545 default:
546 throw new ArgumentOutOfRangeException("attributeIndex");
547 }
548 }
void CheckIndexCondition(int attributeIndex)
string GetDocumentTypeAttr(XmlDocumentType docType, string name)
string GetDeclarationAttr(XmlDeclaration decl, string name)
XmlNodeType NodeType
Definition XmlNode.cs:73

References System.Xml.XmlNodeReaderNavigator._bCreatedOnAttribute, System.Xml.XmlNodeReaderNavigator._curNode, System.Xml.XmlNodeReaderNavigator._elemNode, System.Xml.XmlNodeReaderNavigator.CheckIndexCondition(), System.Xml.Dictionary, System.Xml.XmlNodeReaderNavigator.GetDeclarationAttr(), System.Xml.XmlNodeReaderNavigator.GetDocumentTypeAttr(), and System.Xml.XmlNode.NodeType.