System.Runtime.CompilerServices.CallSiteHelpers.IsInternalFrame C# (CSharp) Method

IsInternalFrame() private method

private IsInternalFrame ( MethodBase mb ) : bool
mb MethodBase
return bool
        public static bool IsInternalFrame(MethodBase mb)
        {
            // All the dynamic methods created for DLR rules have a special name.
            // We also check if the method has a different type than the known
            // non-static method. If it does, it is a dynamic method.
            // This could be improved if the CLR provides a way to attach some information
            // to the dynamic method we create, like CustomAttributes.
            if (mb.Name == CallSite.CallSiteTargetMethodName && mb.GetType() != s_knownNonDynamicMethodType)
            {
                return true;
            }

            // Filter out the helper methods.
            if (mb.DeclaringType == typeof(UpdateDelegates))
            {
                return true;
            }

            return false;
        }
    }
CallSiteHelpers