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
XmlNumeric10Converter.cs
Go to the documentation of this file.
1using System;
3
4namespace System.Xml.Schema
5{
6 // Token: 0x0200015E RID: 350
8 {
9 // Token: 0x06000BD9 RID: 3033 RVA: 0x0001F544 File Offset: 0x0001D744
11 {
12 if (!true)
13 {
14 }
15 base..ctor(schemaType);
16 }
17
18 // Token: 0x06000BDA RID: 3034 RVA: 0x00003FFD File Offset: 0x000021FD
20 {
21 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
22 }
23
24 // Token: 0x06000BDB RID: 3035 RVA: 0x0001F55C File Offset: 0x0001D75C
25 public override decimal ToDecimal(string value)
26 {
27 /*
28An exception occurred when decompiling this method (06000BDB)
29
30ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Decimal System.Xml.Schema.XmlNumeric10Converter::ToDecimal(System.String)
31
32 ---> System.Exception: Basic block has to end with unconditional control flow.
33{
34 Block_0:
35 stloc:XmlTypeCode(var_0_09, ldfld:XmlTypeCode(XmlBaseConverter::typeCode, ldloc:XmlNumeric10Converter[exp:XmlBaseConverter](this)))
36 stloc:Decimal(var_1_10, call:Decimal(XmlConvert::ToDecimal, ldloc:string(value)))
37}
38
39 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
40 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
41 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
42 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
43 --- End of inner exception stack trace ---
44 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
45 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
46*/;
47 }
48
49 // Token: 0x06000BDC RID: 3036 RVA: 0x0001F57C File Offset: 0x0001D77C
50 public override decimal ToDecimal(object value)
51 {
52 if (value != null)
53 {
54 Type type = value.GetType();
55 if (value == null)
56 {
57 }
58 throw new InvalidCastException();
59 }
60 throw new InvalidCastException();
61 }
62
63 // Token: 0x06000BDD RID: 3037 RVA: 0x0001F5A4 File Offset: 0x0001D7A4
64 public override int ToInt32(long value)
65 {
66 if (!true)
67 {
68 }
70 }
71
72 // Token: 0x06000BDE RID: 3038 RVA: 0x0001F5BC File Offset: 0x0001D7BC
73 public override int ToInt32(string value)
74 {
75 while (value == null)
76 {
77 }
80 }
81
82 // Token: 0x06000BDF RID: 3039 RVA: 0x0001F5E0 File Offset: 0x0001D7E0
83 public override int ToInt32(object value)
84 {
85 if (value != null)
86 {
87 Type type = value.GetType();
88 int num;
89 return num;
90 }
91 throw new InvalidCastException();
92 }
93
94 // Token: 0x06000BE0 RID: 3040 RVA: 0x00003FFD File Offset: 0x000021FD
95 public override long ToInt64(int value)
96 {
97 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
98 }
99
100 // Token: 0x06000BE1 RID: 3041 RVA: 0x0001F604 File Offset: 0x0001D804
101 public override long ToInt64(string value)
102 {
103 while (value == null)
104 {
105 }
108 }
109
110 // Token: 0x06000BE2 RID: 3042 RVA: 0x0001F628 File Offset: 0x0001D828
111 public override long ToInt64(object value)
112 {
113 if (value != null)
114 {
115 Type type = value.GetType();
116 long num;
117 return num;
118 }
119 throw new InvalidCastException();
120 }
121
122 // Token: 0x06000BE3 RID: 3043 RVA: 0x0001F648 File Offset: 0x0001D848
123 public override string ToString(decimal value)
124 {
126 return XmlConvert.ToString(decimal.Truncate(value));
127 }
128
129 // Token: 0x06000BE4 RID: 3044 RVA: 0x0001F668 File Offset: 0x0001D868
130 public override string ToString(int value)
131 {
132 if (!true)
133 {
134 }
135 return XmlConvert.ToString(value);
136 }
137
138 // Token: 0x06000BE5 RID: 3045 RVA: 0x0001F680 File Offset: 0x0001D880
139 public override string ToString(long value)
140 {
141 if (!true)
142 {
143 }
144 return XmlConvert.ToString(value);
145 }
146
147 // Token: 0x06000BE6 RID: 3046 RVA: 0x0001F698 File Offset: 0x0001D898
148 public override string ToString(object value, IXmlNamespaceResolver nsResolver)
149 {
150 if (value != null)
151 {
152 Type type = value.GetType();
153 string text;
154 return text;
155 }
156 throw new InvalidCastException();
157 }
158
159 // Token: 0x06000BE7 RID: 3047 RVA: 0x0001F6C0 File Offset: 0x0001D8C0
160 public override object ChangeType(decimal value, Type destinationType)
161 {
162 if (!true)
163 {
164 }
165 if (!true)
166 {
167 }
171 object obj;
172 return obj;
173 }
174
175 // Token: 0x06000BE8 RID: 3048 RVA: 0x0001F6EC File Offset: 0x0001D8EC
176 public override object ChangeType(int value, Type destinationType)
177 {
178 if (!true)
179 {
180 }
181 if (!true)
182 {
183 }
185 decimal num = value;
186 string text = XmlConvert.ToString(value);
188 object obj;
189 return obj;
190 }
191
192 // Token: 0x06000BE9 RID: 3049 RVA: 0x0001F720 File Offset: 0x0001D920
193 public override object ChangeType(long value, Type destinationType)
194 {
195 if (!true)
196 {
197 }
198 if (!true)
199 {
200 }
202 decimal num = value;
204 string text = XmlConvert.ToString(value);
206 object obj;
207 return obj;
208 }
209
210 // Token: 0x06000BEA RID: 3050 RVA: 0x0001F75C File Offset: 0x0001D95C
212 {
213 if (value != null)
214 {
215 if (!true)
216 {
217 }
218 if (!true)
219 {
220 }
223 }
224 return "value";
225 }
226
227 // Token: 0x06000BEB RID: 3051 RVA: 0x0001F788 File Offset: 0x0001D988
229 {
230 if (value != null)
231 {
232 if (!true)
233 {
234 }
235 Type type = value.GetType();
238 }
239 return "value";
240 }
241
242 // Token: 0x06000BEC RID: 3052 RVA: 0x0001F7C4 File Offset: 0x0001D9C4
244 {
245 Type type = value.GetType();
246 return value;
247 }
248
249 // Token: 0x06000BED RID: 3053 RVA: 0x0001F7E4 File Offset: 0x0001D9E4
251 {
252 /*
253An exception occurred when decompiling this method (06000BED)
254
255ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Object System.Xml.Schema.XmlNumeric10Converter::ChangeTypeWildcardSource(System.Object,System.Type,System.Xml.IXmlNamespaceResolver)
256
257 ---> System.Exception: Basic block has to end with unconditional control flow.
258{
259 IL_0000:
260 brtrue(IL_0000, ldc.i4:bool(1))
261}
262
263 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
264 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
265 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
266 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
267 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
268 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
269 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
270 --- End of inner exception stack trace ---
271 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
272 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
273*/;
274 }
275 }
276}
class f__AnonymousType0<< Count > j__TPar
new Type GetType()
Definition Type.cs:287
static int DecimalToInt32(decimal value)
static long DecimalToInt64(decimal value)
override object ChangeType(decimal value, Type destinationType)
override object ChangeType(long value, Type destinationType)
override object ChangeType(object value, Type destinationType, IXmlNamespaceResolver nsResolver)
static XmlValueConverter Create(XmlSchemaType schemaType)
override decimal ToDecimal(string value)
override decimal ToDecimal(object value)
object ChangeTypeWildcardSource(object value, Type destinationType, IXmlNamespaceResolver nsResolver)
override object ChangeType(int value, Type destinationType)
override object ChangeType(string value, Type destinationType, IXmlNamespaceResolver nsResolver)
override string ToString(object value, IXmlNamespaceResolver nsResolver)
object ChangeTypeWildcardDestination(object value, Type destinationType, IXmlNamespaceResolver nsResolver)
XmlSchemaDerivationMethod final
static string ToString(bool value)
static decimal ToDecimal(string s)