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

◆ WriteQualifiedName() [1/4]

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

Definition at line 1598 of file XmlBaseWriter.cs.

1599 {
1600 if (IsClosed)
1601 {
1602 ThrowClosed();
1603 }
1604 if (localName == null)
1605 {
1606 throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("localName"));
1607 }
1608 if (localName.Length == 0)
1609 {
1611 }
1612 if (namespaceUri == null)
1613 {
1614 namespaceUri = string.Empty;
1615 }
1616 string qualifiedNamePrefix = GetQualifiedNamePrefix(namespaceUri, null);
1617 if (qualifiedNamePrefix.Length != 0)
1618 {
1620 WriteString(":");
1621 }
1622 WriteString(localName);
1623 }
static string InvalidLocalNameEmpty
Definition SR.cs:346
Definition SR.cs:7
override void WriteString(string value)
string GetQualifiedNamePrefix(string namespaceUri, XmlDictionaryString xNs)

References System.Xml.ArgumentException, System.Xml.Dictionary, System.Xml.XmlBaseWriter.GetQualifiedNamePrefix(), System.SR.InvalidLocalNameEmpty, System.Xml.XmlBaseWriter.IsClosed, System.Xml.XmlBaseWriter.ThrowClosed(), System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(), and System.Xml.XmlBaseWriter.WriteString().