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
EventHandlerList.cs
Go to the documentation of this file.
1using System;
2
4{
5 // Token: 0x02000339 RID: 825
6 public sealed class EventHandlerList : IDisposable
7 {
8 // Token: 0x0600158C RID: 5516 RVA: 0x00040444 File Offset: 0x0003E644
9 internal EventHandlerList(Component parent)
10 {
11 this._parent = parent;
12 }
13
14 // Token: 0x0600158D RID: 5517 RVA: 0x00040460 File Offset: 0x0003E660
16 {
17 }
18
19 // Token: 0x170004E9 RID: 1257
20 public Delegate this[object key]
21 {
22 get
23 {
24 Component parent = this._parent;
25 if (parent != null)
26 {
28 }
31 if (head != null)
32 {
33 object key2 = head._key;
34 next = head._next;
35 while (next != null)
36 {
37 }
38 }
39 return next._handler;
40 }
41 set
42 {
44 do
45 {
46 head = this._head;
47 if (head == null)
48 {
49 break;
50 }
51 object key2 = head._key;
52 }
53 while (head._next != null);
54 }
55 }
56
57 // Token: 0x06001590 RID: 5520 RVA: 0x000404E4 File Offset: 0x0003E6E4
58 public void AddHandler(object key, Delegate value)
59 {
61 do
62 {
63 head = this._head;
64 if (head == null)
65 {
66 break;
67 }
68 object key2 = head._key;
69 }
70 while (head._next != null);
71 }
72
73 // Token: 0x06001591 RID: 5521 RVA: 0x0004050C File Offset: 0x0003E70C
75 {
77 do
78 {
79 head = listToAddFrom._head;
80 if (head == null)
81 {
82 break;
83 }
84 object key = head._key;
85 Delegate handler = head._handler;
86 this.AddHandler(key, handler);
87 }
88 while (head._next != null);
89 }
90
91 // Token: 0x06001592 RID: 5522 RVA: 0x00040544 File Offset: 0x0003E744
92 public void Dispose()
93 {
94 }
95
96 // Token: 0x06001593 RID: 5523 RVA: 0x00040554 File Offset: 0x0003E754
98 {
100 if (head != null)
101 {
102 object key2 = head._key;
103 }
104 return head;
105 }
106
107 // Token: 0x06001594 RID: 5524 RVA: 0x00040574 File Offset: 0x0003E774
108 public void RemoveHandler(object key, Delegate value)
109 {
111 if (head != null)
112 {
113 object key2 = head._key;
115 while (next != null)
116 {
117 }
118 return;
119 }
120 }
121
122 // Token: 0x0400119A RID: 4506
124
125 // Token: 0x0400119B RID: 4507
127
128 // Token: 0x0200033A RID: 826
129 private sealed class ListEntry
130 {
131 // Token: 0x06001595 RID: 5525 RVA: 0x000405B4 File Offset: 0x0003E7B4
132 public ListEntry(object key, Delegate handler, EventHandlerList.ListEntry next)
133 {
134 this._next = next;
135 this._key = key;
136 this._handler = handler;
137 }
138
139 // Token: 0x0400119C RID: 4508
141
142 // Token: 0x0400119D RID: 4509
143 internal object _key;
144
145 // Token: 0x0400119E RID: 4510
147 }
148 }
149}
class f__AnonymousType0<< Count > j__TPar
ListEntry(object key, Delegate handler, EventHandlerList.ListEntry next)
void RemoveHandler(object key, Delegate value)
void AddHandlers(EventHandlerList listToAddFrom)
EventHandlerList.ListEntry Find(object key)
void AddHandler(object key, Delegate value)