This project has moved. For the latest updates, please go here.

ArgumentException during property get

Mar 28, 2013 at 5:26 PM
Trying to get value of a property that must return an interface i get

System.ArgumentException occurred
Message=Invalid type owner for DynamicMethod

This is the stacktrace

in System.Reflection.Emit.DynamicMethod.Init(String name, MethodAttributes attributes, CallingConventions callingConvention, Type returnType, Type[] signature, Type owner, Module m, Boolean skipVisibility, Boolean transparentMethod, StackCrawlMark& stackMark)
in System.Reflection.Emit.DynamicMethod..ctor(String name, MethodAttributes attributes, CallingConventions callingConvention, Type returnType, Type[] parameterTypes, Type owner, Boolean skipVisibility)
in Fasterflect.Emitter.BaseEmitter.CreateDynamicMethod(String name, Type targetType, Type returnType, Type[] paramTypes)
in Fasterflect.Emitter.MemberGetEmitter.CreateDynamicMethod()
in Fasterflect.Emitter.BaseEmitter.GetDelegate()
in Fasterflect.PropertyInfoExtensions.DelegateForGetPropertyValue(PropertyInfo propInfo, Flags bindingFlags)
in Fasterflect.PropertyInfoExtensions.Get(PropertyInfo propInfo, Object obj)