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

◆ WriteXmlnsAttribute() [1/3]

override void System.Xml.XmlDictionaryWriter.XmlWrappedWriter.WriteXmlnsAttribute ( string prefix,
string namespaceUri )
inline

Definition at line 220 of file XmlDictionaryWriter.cs.

221 {
222 if (namespaceUri == null)
223 {
225 }
226 if (prefix == null)
227 {
228 if (LookupPrefix(namespaceUri) != null)
229 {
230 return;
231 }
232 if (namespaceUri.Length == 0)
233 {
234 prefix = string.Empty;
235 }
236 else
237 {
238 string text = _depth.ToString(NumberFormatInfo.InvariantInfo);
239 string text2 = _prefix.ToString(NumberFormatInfo.InvariantInfo);
240 prefix = "d" + text + "p" + text2;
241 }
242 }
243 WriteAttributeString("xmlns", prefix, null, namespaceUri);
244 }
override string LookupPrefix(string namespaceUri)
void WriteAttributeString(XmlDictionaryString localName, XmlDictionaryString? namespaceUri, string? value)

References System.Xml.XmlDictionaryWriter.XmlWrappedWriter._depth, System.Xml.XmlDictionaryWriter.XmlWrappedWriter._prefix, System.Xml.Dictionary, System.Globalization.NumberFormatInfo.InvariantInfo, System.Xml.XmlDictionaryWriter.XmlWrappedWriter.LookupPrefix(), System.prefix, System.text, System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(), and System.Xml.XmlDictionaryWriter.WriteAttributeString().