This project is read-only.

ProxyTypeBuilder does not honour implemented interfaces


The ProxyTypeBuilder class will not honour any existing interface implementations on a subject type. For example, if type SubjectType implements ICollection<int>, the generated interface ISubjectType and proxy type SubjectTypeProxy will not implement ICollection<int>. As a result, it is no longer possible to pass an instance of ISubjectType to a function that accepts ICollection<int>, where as it would have been possible by passing SubjectType directly.
This functionality should be preserved.


SteveGuidi wrote Oct 27, 2008 at 5:19 PM

wrote Jan 28, 2010 at 3:53 AM

wrote Jan 28, 2010 at 3:47 PM

wrote Aug 7, 2010 at 5:15 PM

SteveGuidi wrote Oct 27, 2010 at 6:23 AM

I believe the InterfaceMap type will help solve this problem.

Currently I am tinkering with an use cases and trying to avoid ordering issues like adding methods to a ProxyTypeBuilder, then specifying that the proxy type implements an interface -- in this case, I may have to revist all added methods and map them correctly.

SteveGuidi wrote Sep 23, 2012 at 4:43 PM

Moving to inactive state. Unfortunately, I have not been able to spend as much time as I would have liked addressing this. However I do know that introducing InterfaceMap support requires a major refactoring of the existing implementation.

wrote Feb 14, 2013 at 3:33 AM

wrote Nov 29 at 1:29 PM