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

◆ WriteXmlnsAttribute() [3/3]

override void System.Xml.XmlBinaryNodeWriter.WriteXmlnsAttribute ( string prefix,
XmlDictionaryString ns )
inline

Definition at line 394 of file XmlBinaryNodeWriter.cs.

395 {
396 if (!TryGetKey(ns, out var key))
397 {
398 WriteXmlnsAttribute(prefix, ns.Value);
399 }
400 else if (string.IsNullOrEmpty(prefix))
401 {
402 WriteNode(XmlBinaryNodeType.ShortDictionaryXmlnsAttribute);
404 }
405 else
406 {
407 WriteNode(XmlBinaryNodeType.DictionaryXmlnsAttribute);
410 }
411 }
override void WriteXmlnsAttribute(string prefix, string ns)
bool TryGetKey(XmlDictionaryString s, out int key)
void WriteDictionaryString(XmlDictionaryString s, int key)
void WriteNode(XmlBinaryNodeType nodeType)

References System.Xml.Dictionary, System.key, System.prefix, System.Xml.XmlBinaryNodeWriter.TryGetKey(), System.Xml.XmlDictionaryString.Value, System.Xml.XmlBinaryNodeWriter.WriteDictionaryString(), System.Xml.XmlBinaryNodeWriter.WriteName(), System.Xml.XmlBinaryNodeWriter.WriteNode(), and System.Xml.XmlBinaryNodeWriter.WriteXmlnsAttribute().