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
BindingList.cs
Go to the documentation of this file.
1using System;
6
8{
9 // Token: 0x02000352 RID: 850
12 {
13 // Token: 0x06001610 RID: 5648 RVA: 0x00041080 File Offset: 0x0003F280
14 public BindingList()
15 {
16 }
17
18 // Token: 0x06001611 RID: 5649 RVA: 0x00041090 File Offset: 0x0003F290
20 {
21 }
22
23 // Token: 0x06001612 RID: 5650 RVA: 0x000410A0 File Offset: 0x0003F2A0
24 private void Initialize()
25 {
26 if (!true)
27 {
28 }
29 }
30
31 // Token: 0x17000504 RID: 1284
32 // (get) Token: 0x06001613 RID: 5651 RVA: 0x000410E4 File Offset: 0x0003F2E4
34 {
35 get
36 {
37 Type type;
38 bool isPrimitive = type.IsPrimitive;
39 return true;
40 }
41 }
42
43 // Token: 0x14000011 RID: 17
44 // (add) Token: 0x06001614 RID: 5652 RVA: 0x000410FC File Offset: 0x0003F2FC
45 // (remove) Token: 0x06001615 RID: 5653 RVA: 0x00041114 File Offset: 0x0003F314
47 {
48 add
49 {
51 if (@delegate != null)
52 {
53 throw new InvalidCastException();
54 }
55 }
56 remove
57 {
59 if (@delegate != null)
60 {
61 throw new InvalidCastException();
62 }
63 }
64 }
65
66 // Token: 0x06001616 RID: 5654 RVA: 0x0004112C File Offset: 0x0003F32C
67 protected virtual void OnAddingNew(AddingNewEventArgs e)
68 {
69 }
70
71 // Token: 0x06001617 RID: 5655 RVA: 0x0004113C File Offset: 0x0003F33C
72 private object FireAddingNew()
73 {
74 }
75
76 // Token: 0x14000012 RID: 18
77 // (add) Token: 0x06001618 RID: 5656 RVA: 0x0004114C File Offset: 0x0003F34C
78 // (remove) Token: 0x06001619 RID: 5657 RVA: 0x00041164 File Offset: 0x0003F364
80 {
81 add
82 {
84 if (@delegate != null)
85 {
86 throw new InvalidCastException();
87 }
88 }
89 remove
90 {
92 if (@delegate != null)
93 {
94 throw new InvalidCastException();
95 }
96 }
97 }
98
99 // Token: 0x0600161A RID: 5658 RVA: 0x0004117C File Offset: 0x0003F37C
100 protected virtual void OnListChanged(ListChangedEventArgs e)
101 {
102 }
103
104 // Token: 0x17000505 RID: 1285
105 // (get) Token: 0x0600161B RID: 5659 RVA: 0x00002050 File Offset: 0x00000250
106 // (set) Token: 0x0600161C RID: 5660 RVA: 0x0004118C File Offset: 0x0003F38C
108 {
109 get
110 {
111 throw new global::Cpp2IlInjected.AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
112 }
113 set
114 {
115 }
116 }
117
118 // Token: 0x0600161D RID: 5661 RVA: 0x0004119C File Offset: 0x0003F39C
119 public void ResetBindings()
120 {
121 }
122
123 // Token: 0x0600161E RID: 5662 RVA: 0x000411AC File Offset: 0x0003F3AC
124 public void ResetItem(int position)
125 {
126 }
127
128 // Token: 0x0600161F RID: 5663 RVA: 0x000411BC File Offset: 0x0003F3BC
129 private void FireListChanged(ListChangedType type, int index)
130 {
131 if (true)
132 {
133 return;
134 }
135 }
136
137 // Token: 0x06001620 RID: 5664 RVA: 0x000411D0 File Offset: 0x0003F3D0
138 protected override void ClearItems()
139 {
140 }
141
142 // Token: 0x06001621 RID: 5665 RVA: 0x00041210 File Offset: 0x0003F410
143 protected override void InsertItem(int index, T item)
144 {
145 }
146
147 // Token: 0x06001622 RID: 5666 RVA: 0x00041220 File Offset: 0x0003F420
148 protected override void RemoveItem(int index)
149 {
150 if (index != 0)
151 {
152 }
153 }
154
155 // Token: 0x06001623 RID: 5667 RVA: 0x00041230 File Offset: 0x0003F430
156 protected override void SetItem(int index, T item)
157 {
158 }
159
160 // Token: 0x06001624 RID: 5668 RVA: 0x00041240 File Offset: 0x0003F440
161 public virtual void CancelNew(int itemIndex)
162 {
163 }
164
165 // Token: 0x06001625 RID: 5669 RVA: 0x00041250 File Offset: 0x0003F450
166 public virtual void EndNew(int itemIndex)
167 {
168 }
169
170 // Token: 0x06001626 RID: 5670 RVA: 0x00041260 File Offset: 0x0003F460
171 public T AddNew()
172 {
173 while (this != null)
174 {
175 if (this == null)
176 {
177 throw new InvalidCastException();
178 }
179 }
180 }
181
182 // Token: 0x06001627 RID: 5671 RVA: 0x0004127C File Offset: 0x0003F47C
184 {
185 if (this == null || this != null)
186 {
187 }
188 throw new InvalidCastException();
189 }
190
191 // Token: 0x17000506 RID: 1286
192 // (get) Token: 0x06001628 RID: 5672 RVA: 0x00041294 File Offset: 0x0003F494
193 private bool AddingNewHandled
194 {
195 get
196 {
197 /*
198An exception occurred when decompiling this method (06001628)
199
200ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean System.ComponentModel.BindingList`1::get_AddingNewHandled()
201
202 ---> System.Exception: Basic block has to end with unconditional control flow.
203{
204 IL_0000:
205 brtrue(IL_0000, logicnot:bool(ldloc:BindingList`1[exp:bool](this)))
206}
207
208 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
209 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
210 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
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 1846
212 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
213 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
214 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
215 --- End of inner exception stack trace ---
216 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
217 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
218*/;
219 }
220 }
221
222 // Token: 0x06001629 RID: 5673 RVA: 0x000412A4 File Offset: 0x0003F4A4
223 protected virtual object AddNewCore()
224 {
225 object obj;
226 if (this == null)
227 {
228 Type type;
229 obj = global::System.SecurityUtils.SecureCreateInstance(type);
230 }
231 if (obj != null && obj == null)
232 {
233 throw new InvalidCastException();
234 }
235 return obj;
236 }
237
238 // Token: 0x17000507 RID: 1287
239 // (get) Token: 0x0600162A RID: 5674 RVA: 0x00002050 File Offset: 0x00000250
240 // (set) Token: 0x0600162B RID: 5675 RVA: 0x000412C8 File Offset: 0x0003F4C8
241 public bool AllowNew
242 {
243 get
244 {
245 throw new global::Cpp2IlInjected.AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
246 }
247 set
248 {
249 }
250 }
251
252 // Token: 0x17000508 RID: 1288
253 // (get) Token: 0x0600162C RID: 5676 RVA: 0x00002050 File Offset: 0x00000250
255 {
256 get
257 {
258 throw new global::Cpp2IlInjected.AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
259 }
260 }
261
262 // Token: 0x17000509 RID: 1289
263 // (get) Token: 0x0600162D RID: 5677 RVA: 0x00002050 File Offset: 0x00000250
264 // (set) Token: 0x0600162E RID: 5678 RVA: 0x000412D8 File Offset: 0x0003F4D8
265 public bool AllowEdit
266 {
267 get
268 {
269 throw new global::Cpp2IlInjected.AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
270 }
271 set
272 {
273 }
274 }
275
276 // Token: 0x1700050A RID: 1290
277 // (get) Token: 0x0600162F RID: 5679 RVA: 0x00002050 File Offset: 0x00000250
279 {
280 get
281 {
282 throw new global::Cpp2IlInjected.AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
283 }
284 }
285
286 // Token: 0x1700050B RID: 1291
287 // (get) Token: 0x06001630 RID: 5680 RVA: 0x00002050 File Offset: 0x00000250
288 // (set) Token: 0x06001631 RID: 5681 RVA: 0x000412E8 File Offset: 0x0003F4E8
289 public bool AllowRemove
290 {
291 get
292 {
293 throw new global::Cpp2IlInjected.AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
294 }
295 set
296 {
297 }
298 }
299
300 // Token: 0x1700050C RID: 1292
301 // (get) Token: 0x06001632 RID: 5682 RVA: 0x00002050 File Offset: 0x00000250
303 {
304 get
305 {
306 throw new global::Cpp2IlInjected.AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
307 }
308 }
309
310 // Token: 0x1700050D RID: 1293
311 // (get) Token: 0x06001633 RID: 5683 RVA: 0x00002050 File Offset: 0x00000250
313 {
314 get
315 {
316 throw new global::Cpp2IlInjected.AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
317 }
318 }
319
320 // Token: 0x1700050E RID: 1294
321 // (get) Token: 0x06001634 RID: 5684 RVA: 0x000412F8 File Offset: 0x0003F4F8
322 protected virtual bool SupportsChangeNotificationCore
323 {
324 get
325 {
326 return true;
327 }
328 }
329
330 // Token: 0x1700050F RID: 1295
331 // (get) Token: 0x06001635 RID: 5685 RVA: 0x00002050 File Offset: 0x00000250
333 {
334 get
335 {
336 throw new global::Cpp2IlInjected.AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
337 }
338 }
339
340 // Token: 0x17000510 RID: 1296
341 // (get) Token: 0x06001636 RID: 5686 RVA: 0x00041308 File Offset: 0x0003F508
342 protected virtual bool SupportsSearchingCore
343 {
344 get
345 {
346 }
347 }
348
349 // Token: 0x17000511 RID: 1297
350 // (get) Token: 0x06001637 RID: 5687 RVA: 0x00002050 File Offset: 0x00000250
352 {
353 get
354 {
355 throw new global::Cpp2IlInjected.AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
356 }
357 }
358
359 // Token: 0x17000512 RID: 1298
360 // (get) Token: 0x06001638 RID: 5688 RVA: 0x00041318 File Offset: 0x0003F518
361 protected virtual bool SupportsSortingCore
362 {
363 get
364 {
365 }
366 }
367
368 // Token: 0x17000513 RID: 1299
369 // (get) Token: 0x06001639 RID: 5689 RVA: 0x00002050 File Offset: 0x00000250
371 {
372 get
373 {
374 throw new global::Cpp2IlInjected.AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
375 }
376 }
377
378 // Token: 0x17000514 RID: 1300
379 // (get) Token: 0x0600163A RID: 5690 RVA: 0x00041328 File Offset: 0x0003F528
380 protected virtual bool IsSortedCore
381 {
382 get
383 {
384 }
385 }
386
387 // Token: 0x17000515 RID: 1301
388 // (get) Token: 0x0600163B RID: 5691 RVA: 0x00002050 File Offset: 0x00000250
390 {
391 get
392 {
393 throw new global::Cpp2IlInjected.AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
394 }
395 }
396
397 // Token: 0x17000516 RID: 1302
398 // (get) Token: 0x0600163C RID: 5692 RVA: 0x00041338 File Offset: 0x0003F538
400 {
401 get
402 {
403 }
404 }
405
406 // Token: 0x17000517 RID: 1303
407 // (get) Token: 0x0600163D RID: 5693 RVA: 0x00002050 File Offset: 0x00000250
409 {
410 get
411 {
412 throw new global::Cpp2IlInjected.AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
413 }
414 }
415
416 // Token: 0x17000518 RID: 1304
417 // (get) Token: 0x0600163E RID: 5694 RVA: 0x00041348 File Offset: 0x0003F548
419 {
420 get
421 {
422 }
423 }
424
425 // Token: 0x0600163F RID: 5695 RVA: 0x00041358 File Offset: 0x0003F558
429
430 // Token: 0x06001640 RID: 5696 RVA: 0x00002050 File Offset: 0x00000250
431 protected virtual void ApplySortCore(PropertyDescriptor prop, ListSortDirection direction)
432 {
433 throw new global::Cpp2IlInjected.AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
434 }
435
436 // Token: 0x06001641 RID: 5697 RVA: 0x00041368 File Offset: 0x0003F568
438 {
439 }
440
441 // Token: 0x06001642 RID: 5698 RVA: 0x00002050 File Offset: 0x00000250
442 protected virtual void RemoveSortCore()
443 {
444 throw new global::Cpp2IlInjected.AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
445 }
446
447 // Token: 0x06001643 RID: 5699 RVA: 0x00002050 File Offset: 0x00000250
449 {
450 throw new global::Cpp2IlInjected.AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
451 }
452
453 // Token: 0x06001644 RID: 5700 RVA: 0x00002050 File Offset: 0x00000250
454 protected virtual int FindCore(PropertyDescriptor prop, object key)
455 {
456 throw new global::Cpp2IlInjected.AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
457 }
458
459 // Token: 0x06001645 RID: 5701 RVA: 0x00041378 File Offset: 0x0003F578
463
464 // Token: 0x06001646 RID: 5702 RVA: 0x00041388 File Offset: 0x0003F588
468
469 // Token: 0x06001647 RID: 5703 RVA: 0x00041398 File Offset: 0x0003F598
470 private void HookPropertyChanged(T item)
471 {
472 if (item != null)
473 {
474 return;
475 }
476 }
477
478 // Token: 0x06001648 RID: 5704 RVA: 0x000413AC File Offset: 0x0003F5AC
480 {
481 if (item != null && this != null)
482 {
483 return;
484 }
485 }
486
487 // Token: 0x06001649 RID: 5705 RVA: 0x000413C4 File Offset: 0x0003F5C4
489 {
490 if (sender == null || e == null)
491 {
493 PropertyDescriptor[] properties = properties2._properties;
494 return;
495 }
496 if (sender != null)
497 {
498 if (sender == null)
499 {
500 Type type;
502 }
503 return;
504 }
505 throw new InvalidCastException();
506 }
507
508 // Token: 0x17000519 RID: 1305
509 // (get) Token: 0x0600164A RID: 5706 RVA: 0x00002050 File Offset: 0x00000250
511 {
512 get
513 {
514 throw new global::Cpp2IlInjected.AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
515 }
516 }
517
518 // Token: 0x040011CB RID: 4555
519 private int addNewPos;
520
521 // Token: 0x040011CC RID: 4556
523
524 // Token: 0x040011CD RID: 4557
526
527 // Token: 0x040011CE RID: 4558
530
531 // Token: 0x040011CF RID: 4559
534
535 // Token: 0x040011D0 RID: 4560
538
539 // Token: 0x040011D1 RID: 4561
542
543 // Token: 0x040011D2 RID: 4562
545 private int _lastChangeIndex;
546
547 // Token: 0x040011D3 RID: 4563
548 private bool allowNew;
549
550 // Token: 0x040011D4 RID: 4564
551 private bool allowEdit;
552
553 // Token: 0x040011D5 RID: 4565
554 private bool allowRemove;
555
556 // Token: 0x040011D6 RID: 4566
557 private bool userSetAllowNew;
558 }
559}
class f__AnonymousType0<< Count > j__TPar
virtual ListSortDirection SortDirectionCore
PropertyDescriptorCollection _itemTypeProperties
AddingNewEventHandler AddingNew
virtual void CancelNew(int itemIndex)
virtual void EndNew(int itemIndex)
ListChangedEventHandler ListChanged
virtual PropertyDescriptor SortPropertyCore
override void RemoveItem(int index)
virtual void ApplySortCore(PropertyDescriptor prop, ListSortDirection direction)
override void SetItem(int index, T item)
virtual int FindCore(PropertyDescriptor prop, object key)
void FireListChanged(ListChangedType type, int index)
AddingNewEventHandler _onAddingNew
PropertyChangedEventHandler _propertyChangedEventHandler
virtual void OnListChanged(ListChangedEventArgs e)
ListChangedEventHandler _onListChanged
void Child_PropertyChanged(object sender, PropertyChangedEventArgs e)
override void InsertItem(int index, T item)
virtual void OnAddingNew(AddingNewEventArgs e)
static PropertyDescriptorCollection GetProperties(Type componentType)
bool IsPrimitive
Definition Type.cs:780
void AddIndex(PropertyDescriptor property)
void ApplySort(PropertyDescriptor property, ListSortDirection direction)
void RemoveIndex(PropertyDescriptor property)
int Find(PropertyDescriptor property, object key)