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
XmlQualifiedName.cs
Go to the documentation of this file.
1using System;
5
6namespace System.Xml
7{
8 // Token: 0x020000AD RID: 173
10 public class XmlQualifiedName
11 {
12 // Token: 0x060007A2 RID: 1954 RVA: 0x0001946C File Offset: 0x0001766C
14 {
15 }
16
17 // Token: 0x060007A3 RID: 1955 RVA: 0x0001947C File Offset: 0x0001767C
18 public XmlQualifiedName(string name)
19 {
20 }
21
22 // Token: 0x060007A4 RID: 1956 RVA: 0x0001948C File Offset: 0x0001768C
23 public XmlQualifiedName(string name, string ns)
24 {
25 if (ns == null)
26 {
27 }
28 if (name == null)
29 {
30 }
31 }
32
33 // Token: 0x170001CE RID: 462
34 // (get) Token: 0x060007A5 RID: 1957 RVA: 0x000194A8 File Offset: 0x000176A8
35 public string Namespace
36 {
37 get
38 {
39 return this.ns;
40 }
41 }
42
43 // Token: 0x170001CF RID: 463
44 // (get) Token: 0x060007A6 RID: 1958 RVA: 0x000194BC File Offset: 0x000176BC
45 public string Name
46 {
47 get
48 {
49 return this.name;
50 }
51 }
52
53 // Token: 0x060007A7 RID: 1959 RVA: 0x000194D0 File Offset: 0x000176D0
54 public override int GetHashCode()
55 {
56 /*
57An exception occurred when decompiling this method (060007A7)
58
59ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 System.Xml.XmlQualifiedName::GetHashCode()
60
61 ---> System.Exception: Basic block has to end with unconditional control flow.
62{
63 IL_0017:
64 stloc:int32(var_1_22, ldfld:int32(string::_stringLength, ldfld:string(XmlQualifiedName::name, ldloc:XmlQualifiedName(this))))
65}
66
67 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
68 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
69 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
70 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
71 --- End of inner exception stack trace ---
72 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
73 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
74*/;
75 }
76
77 // Token: 0x170001D0 RID: 464
78 // (get) Token: 0x060007A8 RID: 1960 RVA: 0x00019500 File Offset: 0x00017700
79 public bool IsEmpty
80 {
81 get
82 {
83 while (this.name._stringLength == 0)
84 {
85 }
86 }
87 }
88
89 // Token: 0x060007A9 RID: 1961 RVA: 0x0001951C File Offset: 0x0001771C
90 public override string ToString()
91 {
92 string text = this.name;
93 string text2 = this.ns;
94 if (text2._stringLength != 0)
95 {
96 return text2 + ":" + text;
97 }
98 return text;
99 }
100
101 // Token: 0x060007AA RID: 1962 RVA: 0x00019550 File Offset: 0x00017750
102 public override bool Equals(object other)
103 {
104 if (other != null)
105 {
106 }
107 string text = this.name;
108 string text2 = this.ns;
109 bool flag;
110 return flag;
111 }
112
113 // Token: 0x060007AB RID: 1963 RVA: 0x00019578 File Offset: 0x00017778
115 {
116 while (a == null)
117 {
118 }
119 string text = a.name;
120 string text2 = a.ns;
121 bool flag;
122 return flag;
123 }
124
125 // Token: 0x060007AC RID: 1964 RVA: 0x000195A0 File Offset: 0x000177A0
127 {
128 if (!true)
129 {
130 }
131 bool flag;
132 return flag;
133 }
134
135 // Token: 0x060007AD RID: 1965 RVA: 0x000195B4 File Offset: 0x000177B4
137 {
138 MethodInfo method;
139 Type type2;
140 do
141 {
142 if (!true)
143 {
144 }
145 if (!true)
146 {
147 }
148 Type type;
149 method = type.GetMethod("InternalMarvin32HashString", BindingFlags.Static | BindingFlags.NonPublic);
150 }
151 while (Delegate.CreateDelegate(type2, method) == null);
152 throw new InvalidCastException();
153 }
154
155 // Token: 0x060007AE RID: 1966 RVA: 0x000195E8 File Offset: 0x000177E8
156 private static bool IsRandomizedHashingDisabled()
157 {
158 }
159
160 // Token: 0x060007AF RID: 1967 RVA: 0x00003FFD File Offset: 0x000021FD
161 private static int GetHashCodeOfString(string s, int length, long additionalEntropy)
162 {
163 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
164 }
165
166 // Token: 0x060007B0 RID: 1968 RVA: 0x000195F8 File Offset: 0x000177F8
167 internal void Init(string name, string ns)
168 {
169 this.name = name;
170 this.ns = ns;
171 }
172
173 // Token: 0x060007B1 RID: 1969 RVA: 0x00019614 File Offset: 0x00017814
174 internal static XmlQualifiedName Parse(string s, IXmlNamespaceResolver nsmgr, [Out] string prefix)
175 {
176 /*
177An exception occurred when decompiling this method (060007B1)
178
179ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Xml.XmlQualifiedName System.Xml.XmlQualifiedName::Parse(System.String,System.Xml.IXmlNamespaceResolver,System.String)
180
181 ---> System.Exception: Basic block has to end with unconditional control flow.
182{
183 IL_0003:
184 brtrue(IL_0000, ldloc:string[exp:bool](s))
185}
186
187 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
188 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
189 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
190 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
191 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
192 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
193 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
194 --- End of inner exception stack trace ---
195 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
196 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
197*/;
198 }
199
200 // Token: 0x060007B2 RID: 1970 RVA: 0x00019628 File Offset: 0x00017828
201 // Note: this type is marked as 'beforefieldinit'.
203 {
204 }
205
206 // Token: 0x040003E1 RID: 993
208
209 // Token: 0x040003E2 RID: 994
210 private string name;
211
212 // Token: 0x040003E3 RID: 995
213 private string ns;
214
215 // Token: 0x040003E4 RID: 996
217 private int hash;
218
219 // Token: 0x040003E5 RID: 997
221
222 // Token: 0x020000AE RID: 174
224 {
225 // Token: 0x060007B3 RID: 1971 RVA: 0x00019638 File Offset: 0x00017838
226 public HashCodeOfStringDelegate(object @object, IntPtr method)
227 {
229 this.m_target = @object;
231 this.method_code = this;
232 }
233
234 // Token: 0x060007B4 RID: 1972 RVA: 0x0001968C File Offset: 0x0001788C
235 public int Invoke(string s, int sLen, long additionalEntropy)
236 {
237 /*
238An exception occurred when decompiling this method (060007B4)
239
240ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 System.Xml.XmlQualifiedName/HashCodeOfStringDelegate::Invoke(System.String,System.Int32,System.Int64)
241
242 ---> System.Exception: Basic block has to end with unconditional control flow.
243{
244 Block_0:
245 stloc:native int(var_0_06, ldfld:native int(Delegate::method_code, ldloc:HashCodeOfStringDelegate[exp:Delegate](this)))
246 stloc:native int(var_1_0D, ldfld:native int(Delegate::invoke_impl, ldloc:HashCodeOfStringDelegate[exp:Delegate](this)))
247 stloc:native int(var_2_14, ldfld:native int(Delegate::method, ldloc:HashCodeOfStringDelegate[exp:Delegate](this)))
248}
249
250 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
251 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
252 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
253 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
254 --- End of inner exception stack trace ---
255 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
256 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
257*/;
258 }
259 }
260 }
261}
class f__AnonymousType0<< Count > j__TPar
static Delegate CreateDelegate(Type type, object firstArgument, MethodInfo method, bool throwOnBindFailure, bool allowClosed)
Definition Delegate.cs:76
MethodInfo GetMethod(string name)
Definition Type.cs:945
int Invoke(string s, int sLen, long additionalEntropy)
XmlQualifiedName(string name, string ns)
static XmlQualifiedName Parse(string s, IXmlNamespaceResolver nsmgr, [Out] string prefix)
static bool operator==(XmlQualifiedName a, XmlQualifiedName b)
static bool operator!=(XmlQualifiedName a, XmlQualifiedName b)
override bool Equals(object other)
static int GetHashCodeOfString(string s, int length, long additionalEntropy)
static XmlQualifiedName.HashCodeOfStringDelegate GetHashCodeDelegate()
static bool IsRandomizedHashingDisabled()
static readonly XmlQualifiedName Empty
static XmlQualifiedName.HashCodeOfStringDelegate hashCodeDelegate
void Init(string name, string ns)