Is there a framework or a native way in .net to dynamically generate wrappers for specified interface. I need a way to say, here is a type I have and here is the interface I want to wrap around it, and for each method it the interface forward calls to these methods on the type provided.
Share
If you want to do this at runtime, Castle DynamicProxy has a CreateInterfaceProxyWithoutTarget API that will do what you’re asking. I believe LinFu has something similar.