terraria-cpp2il-methodrecon v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches

◆ ToString()

override string System.Xml.Linq.XAttribute.ToString ( )
inline

Definition at line 97 of file XAttribute.cs.

98 {
99 if (!true)
100 {
101 }
103 XNamespace ns = this.name._ns;
104 string prefixOfNamespace = this.GetPrefixOfNamespace(ns);
105 XName xname = this.name;
106 string text = this.value;
107 XNamespace ns2 = xname._ns;
108 string localName = xname._localName;
109 string namespaceName = ns2._namespaceName;
110 XmlWriter xmlWriter;
111 xmlWriter.WriteAttributeString(prefixOfNamespace, localName, namespaceName, text);
112 long num = 0L;
113 if (xmlWriter == null || ns2 != null)
114 {
115 }
116 if (num != 0L)
117 {
118 throw new OutOfMemoryException();
119 }
120 long num2 = 0L;
121 if (ns2 != null)
122 {
123 }
124 if (num2 == 0L)
125 {
126 string text2;
127 return text2;
128 }
129 throw new OutOfMemoryException();
130 }
class f__AnonymousType0<< Count > j__TPar
static CultureInfo InvariantCulture
string GetPrefixOfNamespace(XNamespace ns)
XNamespace _ns
Definition XName.cs:123

References System.Xml.Linq.XNamespace._namespaceName, System.Xml.Linq.XName._ns, System.Xml.Linq.XAttribute.GetPrefixOfNamespace(), System.Globalization.CultureInfo.InvariantCulture, j__TPar, System.L, System.Xml.Linq.XAttribute.name, System.text, System.Xml.Linq.XAttribute.value, and System.Xml.XmlWriter.WriteAttributeString().