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
CustomAttributeData.cs
Go to the documentation of this file.
1using System;
4
5namespace System.Reflection
6{
7 // Token: 0x02000502 RID: 1282
8 [ComVisible(true)]
11 {
12 // Token: 0x0600254C RID: 9548 RVA: 0x000526D0 File Offset: 0x000508D0
14 {
15 }
16
17 // Token: 0x0600254D RID: 9549 RVA: 0x000526E4 File Offset: 0x000508E4
18 internal CustomAttributeData(ConstructorInfo ctorInfo, Assembly assembly, IntPtr data, uint data_length)
19 {
21 }
22
23 // Token: 0x0600254E RID: 9550 RVA: 0x00052700 File Offset: 0x00050900
25 {
26 if (!true)
27 {
28 }
29 if (!true)
30 {
31 }
32 base..ctor();
34 this.ctorArgs = 1;
36 }
37
38 // Token: 0x0600254F RID: 9551 RVA: 0x00052730 File Offset: 0x00050930
45
46 // Token: 0x06002550 RID: 9552 RVA: 0x00052758 File Offset: 0x00050958
47 private static void ResolveArgumentsInternal(ConstructorInfo ctor, Assembly assembly, IntPtr data, uint data_length, [Out] object[] ctorArgs, [Out] object[] namedArgs)
48 {
49 }
50
51 // Token: 0x06002551 RID: 9553 RVA: 0x00052768 File Offset: 0x00050968
52 private void ResolveArguments()
53 {
55 if (lazyCAttrData == null)
56 {
57 return;
58 }
60 Assembly assembly = lazyCAttrData.assembly;
61 IntPtr data = lazyCAttrData.data;
62 uint data_length = lazyCAttrData.data_length;
63 if (constructorInfo != null)
64 {
65 return;
66 }
67 }
68
69 // Token: 0x17000526 RID: 1318
70 // (get) Token: 0x06002552 RID: 9554 RVA: 0x000527AC File Offset: 0x000509AC
71 [ComVisible(true)]
73 {
74 get
75 {
76 return this.ctorInfo;
77 }
78 }
79
80 // Token: 0x17000527 RID: 1319
81 // (get) Token: 0x06002553 RID: 9555 RVA: 0x000527C0 File Offset: 0x000509C0
82 [ComVisible(true)]
84 {
85 get
86 {
87 this.ResolveArguments();
88 return this.ctorArgs;
89 }
90 }
91
92 // Token: 0x17000528 RID: 1320
93 // (get) Token: 0x06002554 RID: 9556 RVA: 0x000527DC File Offset: 0x000509DC
95 {
96 get
97 {
98 this.ResolveArguments();
99 return this.namedArgs;
100 }
101 }
102
103 // Token: 0x06002555 RID: 9557 RVA: 0x000527F8 File Offset: 0x000509F8
109
110 // Token: 0x06002556 RID: 9558 RVA: 0x00052808 File Offset: 0x00050A08
112 {
113 if (!true)
114 {
115 }
117 return list;
118 }
119
120 // Token: 0x06002557 RID: 9559 RVA: 0x0005281C File Offset: 0x00050A1C
122 {
123 if (!true)
124 {
125 }
127 return list;
128 }
129
130 // Token: 0x06002558 RID: 9560 RVA: 0x00052830 File Offset: 0x00050A30
132 {
133 if (!true)
134 {
135 }
137 return list;
138 }
139
140 // Token: 0x06002559 RID: 9561 RVA: 0x00052844 File Offset: 0x00050A44
142 {
143 if (!true)
144 {
145 }
147 return list;
148 }
149
150 // Token: 0x17000529 RID: 1321
151 // (get) Token: 0x0600255A RID: 9562 RVA: 0x00052858 File Offset: 0x00050A58
153 {
154 get
155 {
156 /*
157An exception occurred when decompiling this method (0600255A)
158
159ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Type System.Reflection.CustomAttributeData::get_AttributeType()
160
161 ---> System.Exception: Basic block has to end with unconditional control flow.
162{
163 Block_0:
164 stloc:ConstructorInfo(var_0_06, ldfld:ConstructorInfo(CustomAttributeData::ctorInfo, ldloc:CustomAttributeData(this)))
165}
166
167 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
168 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
169 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
170 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
171 --- End of inner exception stack trace ---
172 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
173 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
174*/;
175 }
176 }
177
178 // Token: 0x0600255B RID: 9563 RVA: 0x0005286C File Offset: 0x00050A6C
179 public override string ToString()
180 {
181 /*
182An exception occurred when decompiling this method (0600255B)
183
184ICSharpCode.Decompiler.DecompilerException: Error decompiling System.String System.Reflection.CustomAttributeData::ToString()
185
186 ---> System.Exception: Basic block has to end with unconditional control flow.
187{
188 Block_0:
189 call:void(CustomAttributeData::ResolveArguments, ldloc:CustomAttributeData(this))
190 stloc:ConstructorInfo(var_0_0C, ldfld:ConstructorInfo(CustomAttributeData::ctorInfo, ldloc:CustomAttributeData(this)))
191 stloc:class System.Collections.Generic.IList`1<valuetype System.Reflection.CustomAttributeTypedArgument>(var_4_15, ldfld:class System.Collections.Generic.IList`1<valuetype System.Reflection.CustomAttributeTypedArgument>(CustomAttributeData::ctorArgs, ldloc:CustomAttributeData(this)))
192 stloc:class System.Collections.Generic.IList`1<valuetype System.Reflection.CustomAttributeTypedArgument>(var_5_1D, ldfld:class System.Collections.Generic.IList`1<valuetype System.Reflection.CustomAttributeTypedArgument>(CustomAttributeData::ctorArgs, ldloc:CustomAttributeData(this)))
193 stloc:class System.Collections.Generic.IList`1<valuetype System.Reflection.CustomAttributeTypedArgument>(var_9_28, ldfld:class System.Collections.Generic.IList`1<valuetype System.Reflection.CustomAttributeTypedArgument>(CustomAttributeData::ctorArgs, ldloc:CustomAttributeData(this)))
194 stloc:class System.Collections.Generic.IList`1<valuetype System.Reflection.CustomAttributeNamedArgument>(var_11_30, ldfld:class System.Collections.Generic.IList`1<valuetype System.Reflection.CustomAttributeNamedArgument>(CustomAttributeData::namedArgs, ldloc:CustomAttributeData(this)))
195 stloc:class System.Collections.Generic.IList`1<valuetype System.Reflection.CustomAttributeNamedArgument>(var_14_3B, ldfld:class System.Collections.Generic.IList`1<valuetype System.Reflection.CustomAttributeNamedArgument>(CustomAttributeData::namedArgs, ldloc:CustomAttributeData(this)))
196 stloc:class System.Collections.Generic.IList`1<valuetype System.Reflection.CustomAttributeNamedArgument>(var_15_43, ldfld:class System.Collections.Generic.IList`1<valuetype System.Reflection.CustomAttributeNamedArgument>(CustomAttributeData::namedArgs, ldloc:CustomAttributeData(this)))
197 stloc:class System.Collections.Generic.IList`1<valuetype System.Reflection.CustomAttributeNamedArgument>(var_18_4B, ldfld:class System.Collections.Generic.IList`1<valuetype System.Reflection.CustomAttributeNamedArgument>(CustomAttributeData::namedArgs, ldloc:CustomAttributeData(this)))
198}
199
200 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
201 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
202 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
203 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
204 --- End of inner exception stack trace ---
205 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
206 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
207*/;
208 }
209
210 // Token: 0x0600255C RID: 9564 RVA: 0x000528C8 File Offset: 0x00050AC8
211 private static T[] UnboxValues<T>(object[] values)
212 {
213 throw new InvalidCastException();
214 }
215
216 // Token: 0x0600255D RID: 9565 RVA: 0x000528DC File Offset: 0x00050ADC
232
233 // Token: 0x0600255E RID: 9566 RVA: 0x00052938 File Offset: 0x00050B38
234 public override int GetHashCode()
235 {
236 int num = 1;
238 if (num != 0)
239 {
240 if (constructorInfo == null)
241 {
242 goto IL_0019;
243 }
245 }
246 while (constructorInfo != null)
247 {
248 }
249 IL_0019:
250 int num2 = 13;
251 if (this.ctorArgs != null)
252 {
255 int num3;
256 return num3;
257 }
258 if (this.namedArgs != null)
259 {
262 int num4;
263 return num4;
264 }
265 return num2;
266 }
267
268 // Token: 0x040014BC RID: 5308
270
271 // Token: 0x040014BD RID: 5309
273
274 // Token: 0x040014BE RID: 5310
276
277 // Token: 0x040014BF RID: 5311
279
280 // Token: 0x02000503 RID: 1283
281 private class LazyCAttrData
282 {
283 // Token: 0x0600255F RID: 9567 RVA: 0x000529A0 File Offset: 0x00050BA0
285 {
286 }
287
288 // Token: 0x040014C0 RID: 5312
290
291 // Token: 0x040014C1 RID: 5313
292 internal IntPtr data;
293
294 // Token: 0x040014C2 RID: 5314
295 internal uint data_length;
296 }
297 }
298}
class f__AnonymousType0<< Count > j__TPar
static IList< CustomAttributeData > GetCustomAttributes(Assembly target)
CustomAttributeData(ConstructorInfo ctorInfo, Assembly assembly, IntPtr data, uint data_length)
IList< CustomAttributeNamedArgument > namedArgs
CustomAttributeData(ConstructorInfo ctorInfo, IList< CustomAttributeTypedArgument > ctorArgs, IList< CustomAttributeNamedArgument > namedArgs)
static T[] UnboxValues< T >(object[] values)
static IList< CustomAttributeData > GetCustomAttributesInternal(RuntimeType target)
static IList< CustomAttributeData > GetCustomAttributes(Module target)
CustomAttributeData.LazyCAttrData lazyData
static IList< CustomAttributeData > GetCustomAttributes(ParameterInfo target)
static void ResolveArgumentsInternal(ConstructorInfo ctor, Assembly assembly, IntPtr data, uint data_length, [Out] object[] ctorArgs, [Out] object[] namedArgs)
CustomAttributeData(ConstructorInfo ctorInfo)
IList< CustomAttributeTypedArgument > ctorArgs
static IList< CustomAttributeData > GetCustomAttributes(MemberInfo target)
virtual IList< CustomAttributeNamedArgument > NamedArguments
virtual IList< CustomAttributeTypedArgument > ConstructorArguments