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
PropertyDescriptor.cs
Go to the documentation of this file.
1using System;
4
6{
7 // Token: 0x020003AC RID: 940
8 public abstract class PropertyDescriptor : MemberDescriptor
9 {
10 // Token: 0x060018D1 RID: 6353 RVA: 0x00045D34 File Offset: 0x00043F34
11 protected PropertyDescriptor(string name, Attribute[] attrs)
12 : base(name, attrs)
13 {
14 }
15
16 // Token: 0x060018D2 RID: 6354 RVA: 0x00045D4C File Offset: 0x00043F4C
21
22 // Token: 0x060018D3 RID: 6355 RVA: 0x00045D60 File Offset: 0x00043F60
24 : base(descr, attrs)
25 {
26 }
27
28 // Token: 0x170005AB RID: 1451
29 // (get) Token: 0x060018D4 RID: 6356
30 public abstract Type ComponentType { get; }
31
32 // Token: 0x170005AC RID: 1452
33 // (get) Token: 0x060018D5 RID: 6357 RVA: 0x00045D78 File Offset: 0x00043F78
34 public virtual TypeConverter Converter
35 {
36 get
37 {
39 if (this._converter == null)
40 {
41 if (this != null)
42 {
43 }
44 string name = this.name;
45 if (name != null)
46 {
47 int stringLength = name._stringLength;
49 object obj = this.CreateInstance(typeFromName);
50 if (obj == null)
51 {
52 return typeConverter;
53 }
55 }
56 if (this._converter == null)
57 {
59 }
60 }
61 return typeConverter;
62 }
63 }
64
65 // Token: 0x170005AD RID: 1453
66 // (get) Token: 0x060018D6 RID: 6358 RVA: 0x00045DDC File Offset: 0x00043FDC
67 public virtual bool IsLocalizable
68 {
69 get
70 {
71 if (!true)
72 {
73 }
74 return true;
75 }
76 }
77
78 // Token: 0x170005AE RID: 1454
79 // (get) Token: 0x060018D7 RID: 6359
80 public abstract bool IsReadOnly { get; }
81
82 // Token: 0x170005AF RID: 1455
83 // (get) Token: 0x060018D8 RID: 6360 RVA: 0x00045DF0 File Offset: 0x00043FF0
85 {
86 get
87 {
88 if (this != null)
89 {
90 }
91 string name = this.name;
92 throw new InvalidCastException();
93 }
94 }
95
96 // Token: 0x170005B0 RID: 1456
97 // (get) Token: 0x060018D9 RID: 6361
98 public abstract Type PropertyType { get; }
99
100 // Token: 0x060018DA RID: 6362 RVA: 0x00045E0C File Offset: 0x0004400C
101 public virtual void AddValueChanged(object component, EventHandler handler)
102 {
103 if (component == null)
104 {
105 return;
106 }
107 if (handler != null)
108 {
109 if (this._valueChangedHandlers == null)
110 {
111 }
113 return;
114 }
115 throw new InvalidCastException();
116 }
117
118 // Token: 0x060018DB RID: 6363
119 public abstract bool CanResetValue(object component);
120
121 // Token: 0x060018DC RID: 6364 RVA: 0x00045E38 File Offset: 0x00044038
122 public override bool Equals(object obj)
123 {
124 if (obj != null)
125 {
126 bool flag;
127 return flag;
128 }
129 }
130
131 // Token: 0x060018DD RID: 6365 RVA: 0x00045E5C File Offset: 0x0004405C
132 protected object CreateInstance(Type type)
133 {
134 Type type2;
135 if ((type2 == null || type2 != null) && (this == null || this != null))
136 {
137 object obj;
138 return obj;
139 }
140 throw new ArrayTypeMismatchException();
141 }
142
143 // Token: 0x060018DE RID: 6366 RVA: 0x00045E84 File Offset: 0x00044084
144 protected override void FillAttributes(IList attributeList)
145 {
146 base.FillAttributes(attributeList);
147 }
148
149 // Token: 0x060018DF RID: 6367 RVA: 0x00002050 File Offset: 0x00000250
151 {
152 throw new global::Cpp2IlInjected.AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
153 }
154
155 // Token: 0x060018E0 RID: 6368 RVA: 0x00002050 File Offset: 0x00000250
157 {
158 throw new global::Cpp2IlInjected.AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
159 }
160
161 // Token: 0x060018E1 RID: 6369 RVA: 0x00002050 File Offset: 0x00000250
163 {
164 throw new global::Cpp2IlInjected.AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
165 }
166
167 // Token: 0x060018E2 RID: 6370 RVA: 0x00045E98 File Offset: 0x00044098
168 public virtual PropertyDescriptorCollection GetChildProperties(object instance, Attribute[] filter)
169 {
170 if (instance != null)
171 {
172 if (!true)
173 {
174 }
175 return TypeDescriptor.GetProperties(instance, filter);
176 }
179 }
180
181 // Token: 0x060018E3 RID: 6371 RVA: 0x00045EB4 File Offset: 0x000440B4
182 public virtual object GetEditor(Type editorBaseType)
183 {
184 if (this._editorTypes != null)
185 {
186 if (this._editorCount == 0)
187 {
188 }
190 }
191 if (this != null)
192 {
193 string displayName = this.displayName;
194 Type typeFromName = this.GetTypeFromName(displayName);
195 bool flag = editorBaseType == typeFromName;
196 int nameHash = this.nameHash;
197 }
198 if (this._editorTypes == null)
199 {
201 }
202 int editorCount = this._editorCount;
203 object[] editors = this._editors;
205 object[] editors2 = this._editors;
206 int editorCount2 = this._editorCount;
207 if (editorBaseType != null)
208 {
209 if (editorBaseType == null)
210 {
211 goto IL_00B1;
212 }
213 int editorCount3 = this._editorCount;
214 }
215 object[] editors3 = this._editors;
216 object obj;
217 if (obj == null || obj != null)
218 {
219 return obj;
220 }
221 IL_00B1:
222 throw new ArrayTypeMismatchException();
223 }
224
225 // Token: 0x060018E4 RID: 6372 RVA: 0x00002050 File Offset: 0x00000250
226 public override int GetHashCode()
227 {
228 throw new global::Cpp2IlInjected.AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
229 }
230
231 // Token: 0x060018E5 RID: 6373 RVA: 0x00045F78 File Offset: 0x00044178
232 protected override object GetInvocationTarget(Type type, object instance)
233 {
234 object invocationTarget = base.GetInvocationTarget(type, instance);
235 if (invocationTarget != null)
236 {
237 return invocationTarget;
238 }
239 return invocationTarget;
240 }
241
242 // Token: 0x060018E6 RID: 6374 RVA: 0x00045F98 File Offset: 0x00044198
243 protected Type GetTypeFromName(string typeName)
244 {
245 if (typeName == null)
246 {
247 return;
248 }
249 int stringLength = typeName._stringLength;
250 if (stringLength != 0)
251 {
252 if (stringLength == 0)
253 {
254 }
255 bool flag;
256 if (!flag)
257 {
258 }
259 long num = 0L;
260 int num2;
261 string text = typeName.Substring((int)num, num2);
262 return;
263 }
264 }
265
266 // Token: 0x060018E7 RID: 6375
267 public abstract object GetValue(object component);
268
269 // Token: 0x060018E8 RID: 6376 RVA: 0x00045FCC File Offset: 0x000441CC
270 protected virtual void OnValueChanged(object component, EventArgs e)
271 {
272 if (component != null)
273 {
275 if (valueChangedHandlers != null && valueChangedHandlers != null)
276 {
278 int count = valueChangedHandlers._count;
279 int version = valueChangedHandlers._version;
280 return;
281 }
282 }
283 }
284
285 // Token: 0x060018E9 RID: 6377 RVA: 0x00046008 File Offset: 0x00044208
286 public virtual void RemoveValueChanged(object component, EventHandler handler)
287 {
288 if (component == null)
289 {
290 return;
291 }
292 if (handler == null)
293 {
294 throw new InvalidCastException();
295 }
297 if (valueChangedHandlers == null)
298 {
299 return;
300 }
301 if (valueChangedHandlers != null)
302 {
303 }
305 if (@delegate != null)
306 {
308 return;
309 }
311 }
312
313 // Token: 0x060018EA RID: 6378 RVA: 0x00046048 File Offset: 0x00044248
314 protected internal EventHandler GetValueChangedHandler(object component)
315 {
316 while (component != null)
317 {
319 if (valueChangedHandlers != null && valueChangedHandlers != null)
320 {
321 throw new InvalidCastException();
322 }
323 }
324 }
325
326 // Token: 0x060018EB RID: 6379
327 public abstract void ResetValue(object component);
328
329 // Token: 0x060018EC RID: 6380
330 public abstract void SetValue(object component, object value);
331
332 // Token: 0x060018ED RID: 6381
333 public abstract bool ShouldSerializeValue(object component);
334
335 // Token: 0x170005B1 RID: 1457
336 // (get) Token: 0x060018EE RID: 6382 RVA: 0x0004606C File Offset: 0x0004426C
337 public virtual bool SupportsChangeEvents
338 {
339 get
340 {
341 }
342 }
343
344 // Token: 0x040012A1 RID: 4769
346
347 // Token: 0x040012A2 RID: 4770
349
350 // Token: 0x040012A3 RID: 4771
351 private object[] _editors;
352
353 // Token: 0x040012A4 RID: 4772
355
356 // Token: 0x040012A5 RID: 4773
357 private int _editorCount;
358 }
359}
class f__AnonymousType0<< Count > j__TPar
override void FillAttributes(IList attributeList)
virtual object GetEditor(Type editorBaseType)
PropertyDescriptorCollection GetChildProperties()
EventHandler GetValueChangedHandler(object component)
PropertyDescriptorCollection GetChildProperties(object instance)
PropertyDescriptor(string name, Attribute[] attrs)
bool CanResetValue(object component)
void SetValue(object component, object value)
virtual PropertyDescriptorCollection GetChildProperties(object instance, Attribute[] filter)
virtual void RemoveValueChanged(object component, EventHandler handler)
override object GetInvocationTarget(Type type, object instance)
PropertyDescriptorCollection GetChildProperties(Attribute[] filter)
PropertyDescriptor(MemberDescriptor descr, Attribute[] attrs)
bool ShouldSerializeValue(object component)
object GetValue(object component)
virtual void AddValueChanged(object component, EventHandler handler)
virtual void OnValueChanged(object component, EventArgs e)
DesignerSerializationVisibility SerializationVisibility
static PropertyDescriptorCollection GetProperties(Type componentType)