> I need a proxy object that implements interfaces specified at > run time and forwards all method calls to a delegate through > reflection.
A custom proxy derived from RealProxy should be able to handle this for you. Simply implement IRemotingTypeInfo.CanCastTo on the custom proxy, and you'll be off to the races. (When implemented on a custom proxy, IRemotingTypeInfo.TypeName can simply throw a NotSupportedException in both the get and set methods.) > I see that .NET has a class called RealProxy but it seems > oriented towards remoting and not in-process proxy creation. Custom proxies will work just fine "in-process" (where "in-process" means within a single AppDomain). There are serious performance problems when you attempt to use a custom proxy between AppDomains within a single process. You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.