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
Converter.cs
Go to the documentation of this file.
1using System;
5
7{
8 // Token: 0x02000415 RID: 1045
9 internal sealed class Converter
10 {
11 // Token: 0x06002030 RID: 8240 RVA: 0x00046ED0 File Offset: 0x000450D0
12 internal static InternalPrimitiveTypeE ToCode(Type type)
13 {
14 TypeCode typeCode;
15 return Converter.ToPrimitiveTypeEnum(typeCode);
16 }
17
18 // Token: 0x06002031 RID: 8241 RVA: 0x00046EEC File Offset: 0x000450EC
19 internal static bool IsWriteAsByteArray(InternalPrimitiveTypeE code)
20 {
21 }
22
23 // Token: 0x06002032 RID: 8242 RVA: 0x00046EFC File Offset: 0x000450FC
24 internal static int TypeLength(InternalPrimitiveTypeE code)
25 {
26 }
27
28 // Token: 0x06002033 RID: 8243 RVA: 0x00046F0C File Offset: 0x0004510C
30 {
31 /*
32An exception occurred when decompiling this method (06002033)
33
34ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Type System.Runtime.Serialization.Formatters.Binary.Converter::ToArrayType(System.Runtime.Serialization.Formatters.Binary.InternalPrimitiveTypeE)
35
36 ---> System.Exception: Basic block has to end with unconditional control flow.
37{
38 IL_0008:
39 call:void(Converter::InitArrayTypeA)
40 brtrue(IL_0000, ldloc:int32[exp:bool](var_0_01))
41}
42
43 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
44 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
45 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
46 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
47 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
48 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
49 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
50 --- End of inner exception stack trace ---
51 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
52 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
53*/;
54 }
55
56 // Token: 0x06002034 RID: 8244 RVA: 0x00046F28 File Offset: 0x00045128
57 private static void InitTypeA()
58 {
59 if (!true)
60 {
61 }
62 }
63
64 // Token: 0x06002035 RID: 8245 RVA: 0x00046F40 File Offset: 0x00045140
65 private static void InitArrayTypeA()
66 {
67 if (!true)
68 {
69 }
70 }
71
72 // Token: 0x06002036 RID: 8246 RVA: 0x00046F58 File Offset: 0x00045158
73 internal static Type ToType(InternalPrimitiveTypeE code)
74 {
75 /*
76An exception occurred when decompiling this method (06002036)
77
78ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Type System.Runtime.Serialization.Formatters.Binary.Converter::ToType(System.Runtime.Serialization.Formatters.Binary.InternalPrimitiveTypeE)
79
80 ---> System.Exception: Basic block has to end with unconditional control flow.
81{
82 IL_0008:
83 call:void(Converter::InitTypeA)
84 brtrue(IL_0000, ldloc:int32[exp:bool](var_0_01))
85}
86
87 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
88 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
89 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
90 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
91 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
92 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
93 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
94 --- End of inner exception stack trace ---
95 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
96 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
97*/;
98 }
99
100 // Token: 0x06002037 RID: 8247 RVA: 0x00046F74 File Offset: 0x00045174
102 {
103 }
104
105 // Token: 0x06002038 RID: 8248 RVA: 0x00046F84 File Offset: 0x00045184
106 internal static bool IsPrimitiveArray(Type type, [Out] object typeInformation)
107 {
108 if (!true)
109 {
110 }
111 return true;
112 }
113
114 // Token: 0x06002039 RID: 8249 RVA: 0x00046F98 File Offset: 0x00045198
115 private static void InitValueA()
116 {
117 if (!true)
118 {
119 }
120 if (("Boolean" == null || "Boolean" != null) && ("Byte" == null || "Byte" != null) && ("Char" == null || "Char" != null) && ("Decimal" == null || "Decimal" != null) && ("Double" == null || "Double" != null) && ("Int16" == null || "Int16" != null) && ("Int32" == null || "Int32" != null) && ("Int64" == null || "Int64" != null) && ("SByte" == null || "SByte" != null) && ("Single" == null || "Single" != null) && ("TimeSpan" == null || "TimeSpan" != null) && ("DateTime" == null || "DateTime" != null) && ("UInt16" == null || "UInt16" != null) && ("UInt32" == null || "UInt32" != null) && ("UInt64" == null || "UInt64" != null))
121 {
122 return;
123 }
124 throw new ArrayTypeMismatchException();
125 }
126
127 // Token: 0x0600203A RID: 8250 RVA: 0x00047098 File Offset: 0x00045298
128 internal static string ToComType(InternalPrimitiveTypeE code)
129 {
130 /*
131An exception occurred when decompiling this method (0600203A)
132
133ICSharpCode.Decompiler.DecompilerException: Error decompiling System.String System.Runtime.Serialization.Formatters.Binary.Converter::ToComType(System.Runtime.Serialization.Formatters.Binary.InternalPrimitiveTypeE)
134
135 ---> System.Exception: Basic block has to end with unconditional control flow.
136{
137 IL_0008:
138 call:void(Converter::InitValueA)
139 brtrue(IL_0000, ldloc:int32[exp:bool](var_0_01))
140}
141
142 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
143 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
144 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
145 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
146 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
147 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
148 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
149 --- End of inner exception stack trace ---
150 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
151 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
152*/;
153 }
154
155 // Token: 0x0600203B RID: 8251 RVA: 0x000470B4 File Offset: 0x000452B4
156 private static void InitTypeCodeA()
157 {
158 if (!true)
159 {
160 }
161 }
162
163 // Token: 0x0600203C RID: 8252 RVA: 0x000470C4 File Offset: 0x000452C4
165 {
166 /*
167An exception occurred when decompiling this method (0600203C)
168
169ICSharpCode.Decompiler.DecompilerException: Error decompiling System.TypeCode System.Runtime.Serialization.Formatters.Binary.Converter::ToTypeCode(System.Runtime.Serialization.Formatters.Binary.InternalPrimitiveTypeE)
170
171 ---> System.Exception: Basic block has to end with unconditional control flow.
172{
173 IL_0008:
174 call:void(Converter::InitTypeCodeA)
175 brtrue(IL_0000, ldloc:int32[exp:bool](var_0_01))
176}
177
178 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
179 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
180 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
181 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
182 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
183 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
184 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
185 --- End of inner exception stack trace ---
186 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
187 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
188*/;
189 }
190
191 // Token: 0x0600203D RID: 8253 RVA: 0x000470E0 File Offset: 0x000452E0
192 private static void InitCodeA()
193 {
194 }
195
196 // Token: 0x0600203E RID: 8254 RVA: 0x000470F0 File Offset: 0x000452F0
198 {
199 /*
200An exception occurred when decompiling this method (0600203E)
201
202ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Runtime.Serialization.Formatters.Binary.InternalPrimitiveTypeE System.Runtime.Serialization.Formatters.Binary.Converter::ToPrimitiveTypeEnum(System.TypeCode)
203
204 ---> System.Exception: Basic block has to end with unconditional control flow.
205{
206 IL_0008:
207 call:void(Converter::InitCodeA)
208 brtrue(IL_0000, ldloc:int32[exp:bool](var_0_01))
209}
210
211 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
212 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
213 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
214 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
215 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
216 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
217 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
218 --- End of inner exception stack trace ---
219 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
220 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
221*/;
222 }
223
224 // Token: 0x0600203F RID: 8255 RVA: 0x0004710C File Offset: 0x0004530C
225 internal static object FromString(string value, InternalPrimitiveTypeE code)
226 {
227 object obj;
228 if (value != null)
229 {
231 return obj;
232 }
233 return obj;
234 }
235
236 // Token: 0x06002040 RID: 8256 RVA: 0x00047128 File Offset: 0x00045328
237 // Note: this type is marked as 'beforefieldinit'.
238 static Converter()
239 {
240 }
241
242 // Token: 0x040010BC RID: 4284
243 private static int primitiveTypeEnumLength;
244
245 // Token: 0x040010BD RID: 4285
246 private static Type[] typeA;
247
248 // Token: 0x040010BE RID: 4286
249 private static Type[] arrayTypeA;
250
251 // Token: 0x040010BF RID: 4287
252 private static string[] valueA;
253
254 // Token: 0x040010C0 RID: 4288
255 private static TypeCode[] typeCodeA;
256
257 // Token: 0x040010C1 RID: 4289
259
260 // Token: 0x040010C2 RID: 4290
261 internal static Type typeofISerializable;
262
263 // Token: 0x040010C3 RID: 4291
264 internal static Type typeofString;
265
266 // Token: 0x040010C4 RID: 4292
267 internal static Type typeofConverter;
268
269 // Token: 0x040010C5 RID: 4293
270 internal static Type typeofBoolean;
271
272 // Token: 0x040010C6 RID: 4294
273 internal static Type typeofByte;
274
275 // Token: 0x040010C7 RID: 4295
276 internal static Type typeofChar;
277
278 // Token: 0x040010C8 RID: 4296
279 internal static Type typeofDecimal;
280
281 // Token: 0x040010C9 RID: 4297
282 internal static Type typeofDouble;
283
284 // Token: 0x040010CA RID: 4298
285 internal static Type typeofInt16;
286
287 // Token: 0x040010CB RID: 4299
288 internal static Type typeofInt32;
289
290 // Token: 0x040010CC RID: 4300
291 internal static Type typeofInt64;
292
293 // Token: 0x040010CD RID: 4301
294 internal static Type typeofSByte;
295
296 // Token: 0x040010CE RID: 4302
297 internal static Type typeofSingle;
298
299 // Token: 0x040010CF RID: 4303
300 internal static Type typeofTimeSpan;
301
302 // Token: 0x040010D0 RID: 4304
303 internal static Type typeofDateTime;
304
305 // Token: 0x040010D1 RID: 4305
306 internal static Type typeofUInt16;
307
308 // Token: 0x040010D2 RID: 4306
309 internal static Type typeofUInt32;
310
311 // Token: 0x040010D3 RID: 4307
312 internal static Type typeofUInt64;
313
314 // Token: 0x040010D4 RID: 4308
315 internal static Type typeofObject;
316
317 // Token: 0x040010D5 RID: 4309
318 internal static Type typeofSystemVoid;
319
320 // Token: 0x040010D6 RID: 4310
321 internal static Assembly urtAssembly;
322
323 // Token: 0x040010D7 RID: 4311
324 internal static string urtAssemblyString;
325
326 // Token: 0x040010D8 RID: 4312
327 internal static Type typeofTypeArray;
328
329 // Token: 0x040010D9 RID: 4313
330 internal static Type typeofObjectArray;
331
332 // Token: 0x040010DA RID: 4314
333 internal static Type typeofStringArray;
334
335 // Token: 0x040010DB RID: 4315
336 internal static Type typeofBooleanArray;
337
338 // Token: 0x040010DC RID: 4316
339 internal static Type typeofByteArray;
340
341 // Token: 0x040010DD RID: 4317
342 internal static Type typeofCharArray;
343
344 // Token: 0x040010DE RID: 4318
345 internal static Type typeofDecimalArray;
346
347 // Token: 0x040010DF RID: 4319
348 internal static Type typeofDoubleArray;
349
350 // Token: 0x040010E0 RID: 4320
351 internal static Type typeofInt16Array;
352
353 // Token: 0x040010E1 RID: 4321
354 internal static Type typeofInt32Array;
355
356 // Token: 0x040010E2 RID: 4322
357 internal static Type typeofInt64Array;
358
359 // Token: 0x040010E3 RID: 4323
360 internal static Type typeofSByteArray;
361
362 // Token: 0x040010E4 RID: 4324
363 internal static Type typeofSingleArray;
364
365 // Token: 0x040010E5 RID: 4325
366 internal static Type typeofTimeSpanArray;
367
368 // Token: 0x040010E6 RID: 4326
369 internal static Type typeofDateTimeArray;
370
371 // Token: 0x040010E7 RID: 4327
372 internal static Type typeofUInt16Array;
373
374 // Token: 0x040010E8 RID: 4328
375 internal static Type typeofUInt32Array;
376
377 // Token: 0x040010E9 RID: 4329
378 internal static Type typeofUInt64Array;
379
380 // Token: 0x040010EA RID: 4330
382 }
383}
class f__AnonymousType0<< Count > j__TPar
static CultureInfo InvariantCulture
static TypeCode ToTypeCode(InternalPrimitiveTypeE code)
Definition Converter.cs:164
static InternalPrimitiveTypeE ToPrimitiveTypeEnum(TypeCode typeCode)
Definition Converter.cs:197
static bool IsPrimitiveArray(Type type, [Out] object typeInformation)
Definition Converter.cs:106
static Type ToArrayType(InternalPrimitiveTypeE code)
Definition Converter.cs:29
static Array CreatePrimitiveArray(InternalPrimitiveTypeE code, int length)
Definition Converter.cs:101
static int TypeLength(InternalPrimitiveTypeE code)
Definition Converter.cs:24
static bool IsWriteAsByteArray(InternalPrimitiveTypeE code)
Definition Converter.cs:19
static object FromString(string value, InternalPrimitiveTypeE code)
Definition Converter.cs:225
static InternalPrimitiveTypeE ToCode(Type type)
Definition Converter.cs:12
static string ToComType(InternalPrimitiveTypeE code)
Definition Converter.cs:128
static Type ToType(InternalPrimitiveTypeE code)
Definition Converter.cs:73
TypeCode
Definition TypeCode.cs:7