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

◆ WriteQualifiedName() [3/4]

override void System.Xml.XmlBaseWriter.WriteQualifiedName ( XmlDictionaryString localName,
XmlDictionaryString namespaceUri )
inlineinherited

Definition at line 1625 of file XmlBaseWriter.cs.

1626 {
1627 if (IsClosed)
1628 {
1629 ThrowClosed();
1630 }
1631 if (localName == null)
1632 {
1633 throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("localName"));
1634 }
1635 if (localName.Value.Length == 0)
1636 {
1638 }
1639 if (namespaceUri == null)
1640 {
1641 namespaceUri = XmlDictionaryString.Empty;
1642 }
1643 string qualifiedNamePrefix = GetQualifiedNamePrefix(namespaceUri.Value, namespaceUri);
1644 FlushBase64();
1645 if (_attributeValue != null)
1646 {
1647 WriteAttributeText(qualifiedNamePrefix + ":" + namespaceUri.Value);
1648 }
1649 if (!_isXmlnsAttribute)
1650 {
1651 StartContent();
1653 EndContent();
1654 }
1655 }
static string InvalidLocalNameEmpty
Definition SR.cs:346
Definition SR.cs:7
void WriteAttributeText(string value)
string GetQualifiedNamePrefix(string namespaceUri, XmlDictionaryString xNs)
void WriteQualifiedName(string prefix, XmlDictionaryString localName)

References System.Xml.XmlBaseWriter._attributeValue, System.Xml.XmlBaseWriter._isXmlnsAttribute, System.Xml.XmlBaseWriter._writer, System.Xml.ArgumentException, System.Xml.Dictionary, System.Xml.XmlDictionaryString.Empty, System.Xml.XmlBaseWriter.EndContent(), System.Xml.XmlBaseWriter.FlushBase64(), System.Xml.XmlBaseWriter.GetQualifiedNamePrefix(), System.SR.InvalidLocalNameEmpty, System.Xml.XmlBaseWriter.IsClosed, System.Xml.XmlBaseWriter.StartContent(), System.Xml.XmlBaseWriter.ThrowClosed(), System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(), System.Xml.XmlDictionaryString.Value, System.Xml.XmlBaseWriter.WriteAttributeText(), and System.Xml.XmlNodeWriter.WriteQualifiedName().