Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
◆
GetParentDefinition()
[1/3]
static
EventInfo
System.Attribute.GetParentDefinition
(
EventInfo
ev
)
inline
static
private
inherited
Definition at line
114
of file
Attribute.cs
.
115
{
116
MethodInfo
addMethod
=
ev
.GetAddMethod(
nonPublic
:
true
);
117
RuntimeMethodInfo
runtimeMethodInfo
=
addMethod
as
RuntimeMethodInfo
;
118
if
(
runtimeMethodInfo
!=
null
)
119
{
120
runtimeMethodInfo
=
runtimeMethodInfo
.GetParentDefinition();
121
if
(
runtimeMethodInfo
!=
null
)
122
{
123
return
runtimeMethodInfo
.DeclaringType.GetEvent(
ev
.Name);
124
}
125
}
126
return
null
;
127
}
System.Collections.Generic.Dictionary
Definition
Dictionary.cs:14
System.Reflection.MethodInfo
Definition
MethodInfo.cs:7
System.Reflection.RuntimeMethodInfo
Definition
RuntimeMethodInfo.cs:14
Terraria
Utilities
OldAttribute
Generated by
1.10.0