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

◆ GetPrefixOfNamespace()

string System.Xml.Linq.XElement.GetPrefixOfNamespace ( XNamespace ns)
inline

Definition at line 165 of file XElement.cs.

166 {
167 while (ns == null)
168 {
169 }
170 string namespaceName = ns._namespaceName;
171 XAttribute xattribute = this.lastAttr;
173 if (xattribute != null)
174 {
175 XAttribute next = xattribute.next;
176 bool isNamespaceDeclaration = next.IsNamespaceDeclaration;
177 bool flag = next.value == namespaceName;
178 XName xname = next.name;
179 if (xname._ns._namespaceName._stringLength != 0)
180 {
181 string localName = xname._localName;
183 if (namespaceOfPrefixInScope == null)
184 {
185 return next.name._localName;
186 }
187 }
188 XAttribute xattribute2 = this.lastAttr;
189 }
190 if (this.parent != null)
191 {
192 while (this != null)
193 {
194 }
195 }
197 }
class f__AnonymousType0<< Count > j__TPar
string GetNamespaceOfPrefixInScope(string prefix, XElement outOfScope)
Definition XElement.cs:321

References System.Xml.Linq.XNamespace._namespaceName, System.Xml.Linq.XElement.GetNamespaceOfPrefixInScope(), j__TPar, System.Xml.Linq.XElement.lastAttr, System.Xml.Linq.XNode.next, and System.Xml.Linq.XObject.parent.

Referenced by Newtonsoft.Json.Converters.XElementWrapper.GetPrefixOfNamespace().