Esempio n. 1
0
        public DynamicMethod(string name, Type returnType, Type[] parameterTypes, Type owner, bool skipVisibility)
        {
            StackCrawlMark stackMark = StackCrawlMark.LookForMyCaller;

            DynamicMethod.PerformSecurityCheck(owner, ref stackMark, skipVisibility);
            Init(name, MethodAttributes.Public | MethodAttributes.Static, CallingConventions.Standard, returnType, parameterTypes, owner, null, skipVisibility);
        }
Esempio n. 2
0
        public DynamicMethod(string name, Type returnType, Type[] parameterTypes, Module m)
        {
            StackCrawlMark stackMark = StackCrawlMark.LookForMyCaller;

            DynamicMethod.PerformSecurityCheck(m, ref stackMark, false);
            Init(name, MethodAttributes.Public | MethodAttributes.Static, CallingConventions.Standard, returnType, parameterTypes, null, m, false);
        }
Esempio n. 3
0
        public DynamicMethod(string name,
                             MethodAttributes attributes,
                             CallingConventions callingConvention,
                             Type returnType,
                             Type[] parameterTypes,
                             Module m,
                             bool skipVisibility)
        {
            StackCrawlMark stackMark = StackCrawlMark.LookForMyCaller;

            DynamicMethod.PerformSecurityCheck(m, ref stackMark, skipVisibility);
            Init(name, attributes, callingConvention, returnType, parameterTypes, null, m, skipVisibility);
        }