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

◆ WriteXmlnsAttribute() [1/4]

override void System.Xml.XmlBaseWriter.WriteXmlnsAttribute ( string prefix,
string ns )
inlineinherited

Definition at line 826 of file XmlBaseWriter.cs.

827 {
828 if (IsClosed)
829 {
830 ThrowClosed();
831 }
832 if (ns == null)
833 {
835 }
836 if (_writeState != WriteState.Element)
837 {
839 }
840 if (prefix == null)
841 {
843 if (prefix == null)
844 {
845 GeneratePrefix(ns, null);
846 }
847 }
848 else
849 {
851 }
852 }
static string Format(string resourceFormat, object p1)
Definition SR.cs:118
static string XmlInvalidWriteState
Definition SR.cs:450
Definition SR.cs:7
void AddNamespaceIfNotDeclared(string prefix, string uri, XmlDictionaryString uriDictionaryString)
readonly NamespaceManager _nsMgr
string GeneratePrefix(string ns, XmlDictionaryString xNs)

References System.Xml.XmlBaseWriter._nsMgr, System.Xml.XmlBaseWriter._writeState, System.Xml.XmlBaseWriter.NamespaceManager.AddNamespaceIfNotDeclared(), System.SR.Format(), System.Xml.XmlBaseWriter.GeneratePrefix(), System.Xml.XmlBaseWriter.IsClosed, System.Xml.XmlBaseWriter.NamespaceManager.LookupPrefix(), System.prefix, System.Xml.XmlBaseWriter.ThrowClosed(), System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(), System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(), and System.SR.XmlInvalidWriteState.