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

◆ CheckDeclAttribute()

bool System.Xml.XmlBaseReader.CheckDeclAttribute ( int index,
string localName,
string value,
bool checkLower,
string valueSR )
inlineprivateinherited

Definition at line 1382 of file XmlBaseReader.cs.

1383 {
1384 XmlAttributeNode xmlAttributeNode = _attributeNodes[index];
1385 if (!xmlAttributeNode.Prefix.IsEmpty)
1386 {
1387 XmlExceptionHelper.ThrowXmlException(this, new XmlException(System.SR.XmlMalformedDecl));
1388 }
1389 if (xmlAttributeNode.LocalName != localName)
1390 {
1391 return false;
1392 }
1393 if (value != null && !xmlAttributeNode.Value.Equals2(value, checkLower))
1394 {
1395 XmlExceptionHelper.ThrowXmlException(this, new XmlException(System.SR.Format(valueSR)));
1396 }
1397 return true;
1398 }
static string XmlMalformedDecl
Definition SR.cs:458
static string Format(string resourceFormat, object p1)
Definition SR.cs:118
Definition SR.cs:7
XmlAttributeNode[] _attributeNodes

References System.Xml.XmlBaseReader._attributeNodes, System.Xml.Dictionary, System.SR.Format(), System.index, System.Xml.XmlExceptionHelper.ThrowXmlException(), System.value, System.Xml.XmlException, and System.SR.XmlMalformedDecl.

Referenced by System.Xml.XmlBaseReader.MoveToDeclaration().