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
RuntimeParameterInfo.cs
Go to the documentation of this file.
1using System;
3using System.Text;
5
6namespace System.Reflection
7{
8 // Token: 0x02000511 RID: 1297
10 [ComVisible(true)]
14 {
15 // Token: 0x06002633 RID: 9779 RVA: 0x000538BC File Offset: 0x00051ABC
16 internal RuntimeParameterInfo(string name, Type type, int position, int attrs, object defaultValue, MemberInfo member, MarshalAsAttribute marshalAs)
17 {
20 this.PositionImpl = position;
22 this.ClassImpl = type;
23 this.DefaultValueImpl = defaultValue;
25 }
26
27 // Token: 0x06002634 RID: 9780 RVA: 0x00053904 File Offset: 0x00051B04
29 {
31 if (false)
32 {
33 StringBuilder stringBuilder = sb.Append(", ");
34 }
35 string text;
37 StringBuilder stringBuilder3 = sb.Append(" ByRef");
39 }
40
41 // Token: 0x06002635 RID: 9781 RVA: 0x00053968 File Offset: 0x00051B68
52
53 // Token: 0x06002636 RID: 9782 RVA: 0x000539A8 File Offset: 0x00051BA8
61
62 // Token: 0x17000561 RID: 1377
63 // (get) Token: 0x06002637 RID: 9783 RVA: 0x000539D8 File Offset: 0x00051BD8
64 public override object DefaultValue
65 {
66 get
67 {
69 if (!true)
70 {
71 }
72 Type type;
73 bool flag = classImpl == type;
74 Type type2;
75 bool flag2 = this.ClassImpl == type2;
76 if (this == null || this != null)
77 {
78 if (this.ClassImpl != null)
79 {
81 Type type3;
82 bool flag3 = this.ClassImpl == type3;
83 Type type4;
84 bool flag4 = this.ClassImpl == type4;
85 if (this != null && this == null)
86 {
87 goto IL_0070;
88 }
89 if (this.ClassImpl != null)
90 {
91 return this.DefaultValueImpl;
92 }
93 }
94 return this.DefaultValueImpl;
95 }
96 IL_0070:
97 throw new InvalidCastException();
98 }
99 }
100
101 // Token: 0x06002638 RID: 9784 RVA: 0x00053A5C File Offset: 0x00051C5C
102 public override object[] GetCustomAttributes(bool inherit)
103 {
104 if (!true)
105 {
106 }
107 long num = 0L;
108 return MonoCustomAttrs.GetCustomAttributes(this, num != 0L);
109 }
110
111 // Token: 0x06002639 RID: 9785 RVA: 0x00053A78 File Offset: 0x00051C78
112 public override object[] GetCustomAttributes(Type attributeType, bool inherit)
113 {
114 if (!true)
115 {
116 }
117 long num = 0L;
118 return MonoCustomAttrs.GetCustomAttributes(this, attributeType, num != 0L);
119 }
120
121 // Token: 0x0600263A RID: 9786 RVA: 0x00053A94 File Offset: 0x00051C94
123 {
124 /*
125An exception occurred when decompiling this method (0600263A)
126
127ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Object System.Reflection.RuntimeParameterInfo::GetDefaultValueImpl(System.Reflection.ParameterInfo)
128
129 ---> System.Exception: Basic block has to end with unconditional control flow.
130{
131 IL_0000:
132 brtrue(IL_0000, ldc.i4:bool(1))
133}
134
135 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
136 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
137 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
138 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
139 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
140 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
141 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
142 --- End of inner exception stack trace ---
143 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
144 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
145*/;
146 }
147
148 // Token: 0x0600263B RID: 9787 RVA: 0x00053AA4 File Offset: 0x00051CA4
149 public override bool IsDefined(Type attributeType, bool inherit)
150 {
151 if (!true)
152 {
153 }
155 }
156
157 // Token: 0x0600263C RID: 9788 RVA: 0x00053ABC File Offset: 0x00051CBC
158 internal object[] GetPseudoCustomAttributes()
159 {
160 bool isIn = base.IsIn;
161 bool isOut = base.IsOut;
162 long num = 0L;
163 bool isOptional = base.IsOptional;
164 if (this.marshalAs != null)
165 {
166 }
167 if (num != 0L)
168 {
169 bool isIn2 = base.IsIn;
170 bool isOut2 = base.IsOut;
171 bool isOptional2 = base.IsOptional;
173 if (marshalAsAttribute != null)
174 {
176 if (marshalAsAttribute2 == null || marshalAsAttribute2 != null)
177 {
178 }
179 }
180 }
181 throw new ArrayTypeMismatchException();
182 }
183
184 // Token: 0x0600263D RID: 9789 RVA: 0x00053B28 File Offset: 0x00051D28
186 {
187 bool isIn = base.IsIn;
188 bool isOut = base.IsOut;
189 long num = 0L;
190 bool isOptional = base.IsOptional;
191 if (this.marshalAs != null)
192 {
193 }
194 if (num != 0L)
195 {
196 bool isIn2 = base.IsIn;
197 bool isOut2 = base.IsOut;
198 bool isOptional2 = base.IsOptional;
199 if (this.marshalAs != null)
200 {
201 UnmanagedType utype = this.marshalAs.utype;
202 Type type;
203 if (type == null || type != null)
204 {
205 }
206 }
207 }
208 throw new ArrayTypeMismatchException();
209 }
210
211 // Token: 0x0600263E RID: 9790 RVA: 0x0000207A File Offset: 0x0000027A
213 {
214 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
215 }
216
217 // Token: 0x0600263F RID: 9791 RVA: 0x0000207A File Offset: 0x0000027A
219 {
220 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
221 }
222
223 // Token: 0x040014FF RID: 5375
225 }
226}
class f__AnonymousType0<< Count > j__TPar
static bool IsDefined(ICustomAttributeProvider obj, Type attributeType, bool inherit)
static object[] GetCustomAttributes(ICustomAttributeProvider obj, Type attributeType, bool inherit)
RuntimeParameterInfo(Type type, MemberInfo member, MarshalAsAttribute marshalAs)
RuntimeParameterInfo(string name, Type type, int position, int attrs, object defaultValue, MemberInfo member, MarshalAsAttribute marshalAs)
CustomAttributeData[] GetPseudoCustomAttributesData()
override bool IsDefined(Type attributeType, bool inherit)
object GetDefaultValueImpl(ParameterInfo pinfo)
override object[] GetCustomAttributes(Type attributeType, bool inherit)
static ParameterInfo New(Type type, MemberInfo member, MarshalAsAttribute marshalAs)
static ParameterInfo New(ParameterInfo pinfo, MemberInfo member)
RuntimeParameterInfo(ParameterInfo pinfo, MemberInfo member)
override object[] GetCustomAttributes(bool inherit)
static void FormatParameters(StringBuilder sb, ParameterInfo[] p, CallingConventions callingConvention, bool serialization)
StringBuilder Append(char value, int repeatCount)