Пример #1
0
 public static Target Create <Target>(Target instance, RuntimeProxyInterceptor interceptor) where Target : class
 {
     return((Target) new InternalProxy <Target>(instance, interceptor).GetTransparentProxy());
 }
Пример #2
0
 public InternalProxy(Target instance, RuntimeProxyInterceptor interceptor)
     : base(typeof(Target))
 {
     Instance    = instance;
     Interceptor = interceptor;
 }