Terraria
v1.4.4.9
Terraria source code documentation
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
}
22
}
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