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.
1
using
System
;
2
3
namespace
System.ComponentModel
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
15
public
EventHandlerList
()
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
{
27
bool
canRaiseEventsInternal
= parent.
CanRaiseEventsInternal
;
28
}
29
EventHandlerList.ListEntry
head = this.
_head
;
30
EventHandlerList.ListEntry
next;
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
{
43
EventHandlerList.ListEntry
head;
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
{
60
EventHandlerList.ListEntry
head;
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
74
public
void
AddHandlers
(
EventHandlerList
listToAddFrom
)
75
{
76
EventHandlerList.ListEntry
head;
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
97
private
EventHandlerList.ListEntry
Find
(
object
key
)
98
{
99
EventHandlerList.ListEntry
head = this.
_head
;
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
{
110
EventHandlerList.ListEntry
head = this.
_head
;
111
if
(head !=
null
)
112
{
113
object
key2
= head.
_key
;
114
EventHandlerList.ListEntry
next = head.
_next
;
115
while
(next !=
null
)
116
{
117
}
118
return
;
119
}
120
}
121
122
// Token: 0x0400119A RID: 4506
123
private
EventHandlerList.ListEntry
_head
;
124
125
// Token: 0x0400119B RID: 4507
126
private
Component
_parent
;
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
140
internal
EventHandlerList.ListEntry
_next
;
141
142
// Token: 0x0400119D RID: 4509
143
internal
object
_key
;
144
145
// Token: 0x0400119E RID: 4510
146
internal
Delegate
_handler
;
147
}
148
}
149
}
j__TPar
class f__AnonymousType0<< Count > j__TPar
Definition
--f__AnonymousType0.cs:8
System.ComponentModel.Component.CanRaiseEventsInternal
bool CanRaiseEventsInternal
Definition
Component.cs:33
System.ComponentModel.Component
Definition
Component.cs:13
System.ComponentModel.EventHandlerList.ListEntry._key
object _key
Definition
EventHandlerList.cs:143
System.ComponentModel.EventHandlerList.ListEntry._handler
Delegate _handler
Definition
EventHandlerList.cs:146
System.ComponentModel.EventHandlerList.ListEntry.ListEntry
ListEntry(object key, Delegate handler, EventHandlerList.ListEntry next)
Definition
EventHandlerList.cs:132
System.ComponentModel.EventHandlerList.ListEntry._next
EventHandlerList.ListEntry _next
Definition
EventHandlerList.cs:140
System.ComponentModel.EventHandlerList.ListEntry
Definition
EventHandlerList.cs:130
System.ComponentModel.EventHandlerList.RemoveHandler
void RemoveHandler(object key, Delegate value)
Definition
EventHandlerList.cs:108
System.ComponentModel.EventHandlerList.EventHandlerList
EventHandlerList(Component parent)
Definition
EventHandlerList.cs:9
System.ComponentModel.EventHandlerList.AddHandlers
void AddHandlers(EventHandlerList listToAddFrom)
Definition
EventHandlerList.cs:74
System.ComponentModel.EventHandlerList.Dispose
void Dispose()
Definition
EventHandlerList.cs:92
System.ComponentModel.EventHandlerList.EventHandlerList
EventHandlerList()
Definition
EventHandlerList.cs:15
System.ComponentModel.EventHandlerList.Find
EventHandlerList.ListEntry Find(object key)
Definition
EventHandlerList.cs:97
System.ComponentModel.EventHandlerList.AddHandler
void AddHandler(object key, Delegate value)
Definition
EventHandlerList.cs:58
System.ComponentModel.EventHandlerList._parent
Component _parent
Definition
EventHandlerList.cs:126
System.ComponentModel.EventHandlerList._head
EventHandlerList.ListEntry _head
Definition
EventHandlerList.cs:123
System.ComponentModel.EventHandlerList
Definition
EventHandlerList.cs:7
System.Delegate
Definition
Delegate.cs:14
System.IDisposable
Definition
IDisposable.cs:7
System.ComponentModel
Definition
AddingNewEventArgs.cs:6
System.ExceptionArgument.value
@ value
System.ExceptionArgument.key
@ key
System
Definition
__ComObject.cs:4
source
System
ComponentModel
EventHandlerList.cs
Generated by
1.10.0