I'm getting the following error trying to proxy an Interface (without target) that implements two different generic forms of the same generic interface.
So, I have:
public interface IGenericFoo<T>
{
void DoSomething<T>();
}
// this is the interface I'm trying to proxy without target
public interface IFoo : IGenericFoo<MyType1>, IGenericFoo<MyType2>
{
}
I get the following error:
Duplicate element: Castle.DynamicProxy.Generators.MetaMethod
at DefaultProxyBuilder.CreateInterfaceProxyTypeWithoutTarget
Any suggestions? Is there a workaround?
Thanks.