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); } }
public void SetImplementationFlags(System.Reflection.MethodImplAttributes attributes) { }