Terraria
v1.4.4.9
Terraria source code documentation
Toggle main menu visibility
Main Page
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Functions
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
x
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Properties
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Events
_
a
c
d
e
f
i
l
m
o
p
r
s
t
u
w
Files
File List
File Members
All
Enumerations
Macros
•
All
Classes
Namespaces
Files
Functions
Variables
Enumerations
Enumerator
Properties
Events
Macros
Loading...
Searching...
No Matches
CallSiteHelpers.cs
Go to the documentation of this file.
1
using
System.Dynamic
;
2
using
System.Reflection
;
3
4
namespace
System.Runtime.CompilerServices
;
5
6
public
static
class
CallSiteHelpers
7
{
8
private
static
readonly
Type
s_knownNonDynamicMethodType
= typeof(
object
).GetMethod(
"ToString"
).GetType();
9
10
public
static
bool
IsInternalFrame
(
MethodBase
mb)
11
{
12
if
(mb.
Name
==
"CallSite.Target"
&& mb.GetType() !=
s_knownNonDynamicMethodType
)
13
{
14
return
true
;
15
}
16
if
(mb.
DeclaringType
== typeof(
UpdateDelegates
))
17
{
18
return
true
;
19
}
20
return
false
;
21
}
10
public
static
bool
IsInternalFrame
(
MethodBase
mb) {
…
}
22
}
6
public
static
class
CallSiteHelpers
{
…
};
System.Dynamic.UpdateDelegates
Definition
UpdateDelegates.cs:6
System.Reflection.MemberInfo.Name
string Name
Definition
MemberInfo.cs:10
System.Reflection.MemberInfo.DeclaringType
Type? DeclaringType
Definition
MemberInfo.cs:12
System.Reflection.MethodBase
Definition
MethodBase.cs:12
System.Runtime.CompilerServices.CallSiteHelpers.s_knownNonDynamicMethodType
static readonly Type s_knownNonDynamicMethodType
Definition
CallSiteHelpers.cs:8
System.Runtime.CompilerServices.CallSiteHelpers.IsInternalFrame
static bool IsInternalFrame(MethodBase mb)
Definition
CallSiteHelpers.cs:10
System.Runtime.CompilerServices.CallSiteHelpers
Definition
CallSiteHelpers.cs:7
System.Type
Definition
Type.cs:14
System.Dynamic
Definition
CacheDict.cs:4
System.Reflection
Definition
ICustomTypeProvider.cs:1
System.Runtime.CompilerServices
Definition
NullablePublicOnlyAttribute.cs:3
source
System.Linq.Expressions
System.Runtime.CompilerServices
CallSiteHelpers.cs
Generated by
1.10.0