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
XNamespace.cs
Go to the documentation of this file.
1using System;
3
4namespace System.Xml.Linq
5{
6 // Token: 0x02000017 RID: 23
7 public sealed class XNamespace
8 {
9 // Token: 0x0600009A RID: 154 RVA: 0x000037B0 File Offset: 0x000019B0
15
16 // Token: 0x1700001F RID: 31
17 // (get) Token: 0x0600009B RID: 155 RVA: 0x000037D4 File Offset: 0x000019D4
18 public string NamespaceName
19 {
20 get
21 {
22 return this._namespaceName;
23 }
24 }
25
26 // Token: 0x0600009C RID: 156 RVA: 0x000037E8 File Offset: 0x000019E8
27 public XName GetName(string localName)
28 {
29 while (localName == null)
30 {
31 }
32 int stringLength = localName._stringLength;
33 long num = 0L;
34 return this.GetName(localName, (int)num, stringLength);
35 }
36
37 // Token: 0x0600009D RID: 157 RVA: 0x0000380C File Offset: 0x00001A0C
38 public override string ToString()
39 {
40 return this._namespaceName;
41 }
42
43 // Token: 0x17000020 RID: 32
44 // (get) Token: 0x0600009E RID: 158 RVA: 0x00003820 File Offset: 0x00001A20
45 public static XNamespace None
46 {
47 get
48 {
50 return xnamespace;
51 }
52 }
53
54 // Token: 0x17000021 RID: 33
55 // (get) Token: 0x0600009F RID: 159 RVA: 0x00003830 File Offset: 0x00001A30
56 public static XNamespace Xml
57 {
58 get
59 {
61 return xnamespace;
62 }
63 }
64
65 // Token: 0x17000022 RID: 34
66 // (get) Token: 0x060000A0 RID: 160 RVA: 0x00003840 File Offset: 0x00001A40
67 public static XNamespace Xmlns
68 {
69 get
70 {
72 return xnamespace;
73 }
74 }
75
76 // Token: 0x060000A1 RID: 161 RVA: 0x00003850 File Offset: 0x00001A50
77 public static XNamespace Get(string namespaceName)
78 {
80 return xnamespace;
81 }
82
83 // Token: 0x060000A2 RID: 162 RVA: 0x00003860 File Offset: 0x00001A60
84 [CLSCompliant(false)]
85 public static implicit operator XNamespace(string namespaceName)
86 {
88 return xnamespace;
89 }
90
91 // Token: 0x060000A3 RID: 163 RVA: 0x00002367 File Offset: 0x00000567
92 public override bool Equals(object obj)
93 {
94 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
95 }
96
97 // Token: 0x060000A4 RID: 164 RVA: 0x00003870 File Offset: 0x00001A70
98 public override int GetHashCode()
99 {
100 return this._hashCode;
101 }
102
103 // Token: 0x060000A5 RID: 165 RVA: 0x00002367 File Offset: 0x00000567
104 public static bool operator ==(XNamespace left, XNamespace right)
105 {
106 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
107 }
108
109 // Token: 0x060000A6 RID: 166 RVA: 0x00002367 File Offset: 0x00000567
110 public static bool operator !=(XNamespace left, XNamespace right)
111 {
112 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
113 }
114
115 // Token: 0x060000A7 RID: 167 RVA: 0x00003884 File Offset: 0x00001A84
116 internal XName GetName(string localName, int index, int count)
117 {
118 XHashtable<XName> names = this._names;
120 string text = localName.Substring(index, count);
121 XName xname;
122 return xname;
123 }
124
125 // Token: 0x060000A8 RID: 168 RVA: 0x000038AC File Offset: 0x00001AAC
126 internal static XNamespace Get(string namespaceName, int index, int count)
127 {
128 if (index != 0)
129 {
130 bool flag;
131 if (flag)
132 {
133 goto IL_0012;
134 }
135 int num;
136 if (num == 0)
137 {
138 return XNamespace.Xml;
139 }
140 int num2;
141 if (num2 == 0)
142 {
143 return XNamespace.Xmlns;
144 }
145 !0 !;
146 if (! != null)
147 {
148 goto IL_0012;
149 }
150 IL_0016:
151 while (! == null)
152 {
153 }
154 goto IL_001A;
155 IL_0012:
156 if (! != null)
157 {
158 goto IL_0016;
159 }
160 goto IL_0016;
161 }
162 IL_001A:
163 return XNamespace.None;
164 }
165
166 // Token: 0x060000A9 RID: 169 RVA: 0x00002367 File Offset: 0x00000567
167 private static string ExtractLocalName(XName n)
168 {
169 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
170 }
171
172 // Token: 0x060000AA RID: 170 RVA: 0x000038EC File Offset: 0x00001AEC
173 private static string ExtractNamespace(WeakReference r)
174 {
175 throw new InvalidCastException();
176 }
177
178 // Token: 0x060000AB RID: 171 RVA: 0x00003900 File Offset: 0x00001B00
180 {
181 throw new InvalidCastException();
182 }
183
184 // Token: 0x04000039 RID: 57
186
187 // Token: 0x0400003A RID: 58
188 private static WeakReference s_refNone;
189
190 // Token: 0x0400003B RID: 59
191 private static WeakReference s_refXml;
192
193 // Token: 0x0400003C RID: 60
194 private static WeakReference s_refXmlns;
195
196 // Token: 0x0400003D RID: 61
197 private string _namespaceName;
198
199 // Token: 0x0400003E RID: 62
200 private int _hashCode;
201
202 // Token: 0x0400003F RID: 63
204 }
205}
class f__AnonymousType0<< Count > j__TPar
static XNamespace Xmlns
Definition XNamespace.cs:68
override bool Equals(object obj)
Definition XNamespace.cs:92
static WeakReference s_refNone
XHashtable< XName > _names
override string ToString()
Definition XNamespace.cs:38
override int GetHashCode()
Definition XNamespace.cs:98
static string ExtractLocalName(XName n)
static XNamespace Get(string namespaceName, int index, int count)
static XNamespace Get(string namespaceName)
Definition XNamespace.cs:77
static XNamespace EnsureNamespace(WeakReference refNmsp, string namespaceName)
static XNamespace None
Definition XNamespace.cs:46
XNamespace(string namespaceName)
Definition XNamespace.cs:10
static XHashtable< WeakReference > s_namespaces
static WeakReference s_refXmlns
static XNamespace Xml
Definition XNamespace.cs:57
static string ExtractNamespace(WeakReference r)
XName GetName(string localName, int index, int count)
XName GetName(string localName)
Definition XNamespace.cs:27
static bool operator==(XNamespace left, XNamespace right)
static bool operator!=(XNamespace left, XNamespace right)
static WeakReference s_refXml