Esempio n. 1
0
        public void SetImplementationFlagsIfPresent(MethodDefinition methodDefintion, ConstructorBuilder constructorBuilder)
        {
            System.Reflection.MethodImplAttributes methodImplFlags = default(System.Reflection.MethodImplAttributes);
            bool setFlags = false;

            if (methodDefintion.IsRuntime)
            {
                methodImplFlags |= System.Reflection.MethodImplAttributes.Runtime;

                setFlags = true;
            }

            if (methodDefintion.IsManaged)
            {
                methodImplFlags |= System.Reflection.MethodImplAttributes.Managed;

                setFlags = true;
            }

            if (setFlags)
            {
                //methodDefintion.IsManaged;
                constructorBuilder.SetImplementationFlags(methodImplFlags);
            }
        }
Esempio n. 2
0
 public void SetImplementationFlags(System.Reflection.MethodImplAttributes attributes)
 {
 }