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
MemberDescriptor.cs
Go to the documentation of this file.
1using System;
7
9{
10 // Token: 0x020003E6 RID: 998
11 [ComVisible(true)]
12 public abstract class MemberDescriptor
13 {
14 // Token: 0x06001A5A RID: 6746 RVA: 0x00048EA8 File Offset: 0x000470A8
15 protected MemberDescriptor(string name)
16 {
17 }
18
19 // Token: 0x06001A5B RID: 6747 RVA: 0x00048EB8 File Offset: 0x000470B8
21 {
22 if (name == null || name._stringLength == 0)
23 {
24 string @string = SR.GetString("Invalid member name.");
25 return;
26 }
30 if (attributes != null)
31 {
33 return;
34 }
35 Attribute[] array = this.attributes;
37 }
38
39 // Token: 0x06001A5C RID: 6748 RVA: 0x00048F14 File Offset: 0x00047114
50
51 // Token: 0x06001A5D RID: 6749 RVA: 0x00048F5C File Offset: 0x0004715C
53 {
55 string text = this.name;
58 int num;
59 if (num != 0)
60 {
61 return;
62 }
63 if (newAttributes != null)
64 {
65 }
66 Attribute[] array = this.attributes;
68 }
69
70 // Token: 0x1700060C RID: 1548
71 // (get) Token: 0x06001A5E RID: 6750 RVA: 0x00048FC8 File Offset: 0x000471C8
72 // (set) Token: 0x06001A5F RID: 6751 RVA: 0x00048FE8 File Offset: 0x000471E8
73 protected virtual Attribute[] AttributeArray
74 {
75 get
76 {
79 return this.attributes;
80 }
81 set
82 {
83 object obj = this.lockCookie;
84 long num = 0L;
88 if (num == 0L)
89 {
90 return;
91 }
92 throw new OutOfMemoryException();
93 }
94 }
95
96 // Token: 0x1700060D RID: 1549
97 // (get) Token: 0x06001A60 RID: 6752 RVA: 0x00049038 File Offset: 0x00047238
99 {
100 get
101 {
103 if (this.attributeCollection == null)
104 {
105 object obj = this.lockCookie;
106 long num = 0L;
109 if (num == 0L)
110 {
111 }
112 }
113 throw new OutOfMemoryException();
114 }
115 }
116
117 // Token: 0x1700060E RID: 1550
118 // (get) Token: 0x06001A61 RID: 6753 RVA: 0x0004908C File Offset: 0x0004728C
119 public virtual string Category
120 {
121 get
122 {
123 string text;
124 if (this.category == null)
125 {
126 if (this != null)
127 {
128 }
130 }
131 return text;
132 }
133 }
134
135 // Token: 0x1700060F RID: 1551
136 // (get) Token: 0x06001A62 RID: 6754 RVA: 0x000490B4 File Offset: 0x000472B4
137 public virtual string Description
138 {
139 get
140 {
141 if (this.description == null)
142 {
143 this.description = this;
144 }
145 throw new InvalidCastException();
146 }
147 }
148
149 // Token: 0x17000610 RID: 1552
150 // (get) Token: 0x06001A63 RID: 6755 RVA: 0x000490D8 File Offset: 0x000472D8
151 public virtual bool IsBrowsable
152 {
153 get
154 {
155 if (this != null)
156 {
157 }
158 string text = this.name;
159 throw new InvalidCastException();
160 }
161 }
162
163 // Token: 0x17000611 RID: 1553
164 // (get) Token: 0x06001A64 RID: 6756 RVA: 0x000490F4 File Offset: 0x000472F4
165 public virtual string Name
166 {
167 get
168 {
169 string text = this.name;
170 return "";
171 }
172 }
173
174 // Token: 0x17000612 RID: 1554
175 // (get) Token: 0x06001A65 RID: 6757 RVA: 0x00049110 File Offset: 0x00047310
176 protected virtual int NameHashCode
177 {
178 get
179 {
180 return this.nameHash;
181 }
182 }
183
184 // Token: 0x17000613 RID: 1555
185 // (get) Token: 0x06001A66 RID: 6758 RVA: 0x00049124 File Offset: 0x00047324
186 public virtual bool DesignTimeOnly
187 {
188 get
189 {
190 if (!true)
191 {
192 }
193 return true;
194 }
195 }
196
197 // Token: 0x17000614 RID: 1556
198 // (get) Token: 0x06001A67 RID: 6759 RVA: 0x00049138 File Offset: 0x00047338
199 public virtual string DisplayName
200 {
201 get
202 {
203 if (this != null)
204 {
205 }
206 return this.displayName;
207 }
208 }
209
210 // Token: 0x06001A68 RID: 6760 RVA: 0x00049150 File Offset: 0x00047350
211 private void CheckAttributesValid()
212 {
213 bool flag = this.attributesFiltered;
214 if (flag)
215 {
216 int num = this.metadataVersion;
217 if (!flag)
218 {
219 }
220 if (!true)
221 {
222 }
223 }
224 }
225
226 // Token: 0x06001A69 RID: 6761 RVA: 0x00002050 File Offset: 0x00000250
228 {
229 throw new global::Cpp2IlInjected.AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
230 }
231
232 // Token: 0x06001A6A RID: 6762 RVA: 0x00049174 File Offset: 0x00047374
233 public override bool Equals(object obj)
234 {
235 if (obj != null)
236 {
237 Type type = obj.GetType();
239 bool flag = type != type2;
241 int num = this.nameHash;
242 if (this.category != null)
243 {
244 }
245 string text = this.description;
246 if (text != null)
247 {
248 bool flag2;
249 return flag2;
250 }
251 if (this.attributes != null)
252 {
253 Attribute[] array = this.attributes;
254 }
255 }
256 throw new InvalidCastException();
257 }
258
259 // Token: 0x06001A6B RID: 6763 RVA: 0x000491E0 File Offset: 0x000473E0
260 protected virtual void FillAttributes(IList attributeList)
261 {
262 if (this.originalAttributes != null)
263 {
264 return;
265 }
266 }
267
268 // Token: 0x06001A6C RID: 6764 RVA: 0x000491FC File Offset: 0x000473FC
270 {
271 if (this.attributesFiltered)
272 {
273 return;
274 }
275 bool flag = this.attributesFilled;
276 if (flag)
277 {
278 Attribute[] array = this.attributes;
279 return;
280 }
281 if (flag)
282 {
283 }
284 }
285
286 // Token: 0x06001A6D RID: 6765 RVA: 0x00049300 File Offset: 0x00047500
287 protected static MethodInfo FindMethod(Type componentClass, string name, Type[] args, Type returnType)
288 {
290 return methodInfo;
291 }
292
293 // Token: 0x06001A6E RID: 6766 RVA: 0x00049310 File Offset: 0x00047510
294 protected static MethodInfo FindMethod(Type componentClass, string name, Type[] args, Type returnType, bool publicOnly)
295 {
297 return methodInfo;
298 }
299
300 // Token: 0x06001A6F RID: 6767 RVA: 0x00049324 File Offset: 0x00047524
301 public override int GetHashCode()
302 {
303 return this.nameHash;
304 }
305
306 // Token: 0x06001A70 RID: 6768 RVA: 0x00049338 File Offset: 0x00047538
307 protected virtual object GetInvocationTarget(Type type, object instance)
308 {
309 do
310 {
311 if (!true)
312 {
313 }
314 }
315 while (instance == null);
316 return TypeDescriptor.GetAssociation(type, instance);
317 }
318
319 // Token: 0x06001A71 RID: 6769 RVA: 0x00049358 File Offset: 0x00047558
320 protected static ISite GetSite(object component)
321 {
322 long value = 0.m_value;
323 throw new InvalidCastException();
324 }
325
326 // Token: 0x06001A72 RID: 6770 RVA: 0x00049374 File Offset: 0x00047574
327 [Obsolete("This method has been deprecated. Use GetInvocationTarget instead. http://go.microsoft.com/fwlink/?linkid=14202")]
328 protected static object GetInvokee(Type componentClass, object component)
329 {
330 do
331 {
332 if (!true)
333 {
334 }
335 }
336 while (componentClass == null);
337 object obj;
338 return obj;
339 }
340
341 // Token: 0x0400130D RID: 4877
342 private string name;
343
344 // Token: 0x0400130E RID: 4878
345 private string displayName;
346
347 // Token: 0x0400130F RID: 4879
348 private int nameHash;
349
350 // Token: 0x04001310 RID: 4880
352
353 // Token: 0x04001311 RID: 4881
355
356 // Token: 0x04001312 RID: 4882
358
359 // Token: 0x04001313 RID: 4883
360 private bool attributesFiltered;
361
362 // Token: 0x04001314 RID: 4884
363 private bool attributesFilled;
364
365 // Token: 0x04001315 RID: 4885
366 private int metadataVersion;
367
368 // Token: 0x04001316 RID: 4886
369 private string category;
370
371 // Token: 0x04001317 RID: 4887
372 private string description;
373
374 // Token: 0x04001318 RID: 4888
375 private object lockCookie;
376 }
377}
class f__AnonymousType0<< Count > j__TPar
static string GetString(string name, params object[] args)
Definition SR.cs:9
Definition SR.cs:7
MemberDescriptor(MemberDescriptor oldMemberDescriptor, Attribute[] newAttributes)
static object GetInvokee(Type componentClass, object component)
MemberDescriptor(string name, Attribute[] attributes)
virtual object GetInvocationTarget(Type type, object instance)
static MethodInfo FindMethod(Type componentClass, string name, Type[] args, Type returnType)
virtual AttributeCollection CreateAttributeCollection()
static MethodInfo FindMethod(Type componentClass, string name, Type[] args, Type returnType, bool publicOnly)
virtual void FillAttributes(IList attributeList)
virtual AttributeCollection Attributes
static ISite GetSite(object component)
static object GetAssociation(Type type, object primary)
static void Exit(object obj)
Definition Monitor.cs:47
new Type GetType()
Definition Type.cs:287