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

◆ WriteXmlnsAttribute() [2/4]

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

Definition at line 854 of file XmlBaseWriter.cs.

855 {
856 if (IsClosed)
857 {
858 ThrowClosed();
859 }
860 if (ns == null)
861 {
863 }
864 if (_writeState != WriteState.Element)
865 {
867 }
868 if (prefix == null)
869 {
870 prefix = _nsMgr.LookupPrefix(ns.Value);
871 if (prefix == null)
872 {
873 GeneratePrefix(ns.Value, ns);
874 }
875 }
876 else
877 {
879 }
880 }
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(), System.Xml.XmlDictionaryString.Value, and System.SR.XmlInvalidWriteState.