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

◆ GetAttribute() [3/4]

override string System.Xml.XsdValidatingReader.GetAttribute ( string name,
string namespaceURI )
inline

Definition at line 1059 of file XsdValidatingReader.cs.

1060 {
1062 if (attribute == null && _attributeCount > 0)
1063 {
1064 string text = ((namespaceURI == null) ? string.Empty : _coreReaderNameTable.Get(namespaceURI));
1065 string text2 = _coreReaderNameTable.Get(name);
1066 if (text2 == null || text == null)
1067 {
1068 return null;
1069 }
1070 ValidatingReaderNodeData defaultAttribute = GetDefaultAttribute(text2, text, updatePosition: false);
1071 if (defaultAttribute != null)
1072 {
1073 return defaultAttribute.RawValue;
1074 }
1075 }
1076 return attribute;
1077 }
string? Get(char[] array, int offset, int length)
string? GetAttribute(string name)
ValidatingReaderNodeData GetDefaultAttribute(string name, bool updatePosition)
readonly XmlNameTable _coreReaderNameTable

References System.Xml.XsdValidatingReader._attributeCount, System.Xml.XsdValidatingReader._coreReader, System.Xml.XsdValidatingReader._coreReaderNameTable, System.Xml.Dictionary, System.Xml.XmlNameTable.Get(), System.Xml.XmlReader.GetAttribute(), System.Xml.XsdValidatingReader.GetDefaultAttribute(), and System.text.