An example explains it best :
public interface IA {
void foo();
void bar();
}
public class A : IA {
public virtual void foo(){
Console.Write(\"foo\")
You're using the method CreateInterfaceProxyWithTarget
which instructs the proxy builder to create a proxy for the interface and forward the calls to the target object, so what you're seeing is what you've asked it to do.
If you want the proxy to derive from your class then you'd need to use the CreateClassProxy
method instead.