public object CreateDuck(Type duckType, params Type[] baseInterfaces) { IInterceptor interceptor = new DuckType(this); var result = _factory.CreateProxy(duckType, interceptor, baseInterfaces); return(result); }
public T CreateDuck <T>(params Type[] baseInterfaces) where T : class { IInterceptor interceptor = new DuckType(this); var result = _factory.CreateProxy <T>(interceptor, baseInterfaces); return(result); }