Terraria v1.4.4.9
Terraria source code documentation
All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events Macros
CallSiteHelpers.cs
Go to the documentation of this file.
3
5
6public 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}