private static bool CheckDynamicallyInvokable(MemberInfo member)
        {
            if (!MockingUtil.IsMetro())
            {
                return(true);
            }

            var dynInvoke = member.Module.GetType("__DynamicallyInvokableAttribute", false, false);

            if (dynInvoke == null)
            {
                return(true);
            }

            return(Attribute.IsDefined(member, dynInvoke));
        }