/// <summary> /// Redirects the specified invocation. /// </summary> /// <typeparam name="TParam">The type of the subject parameter.</typeparam> /// <param name="invocation">The invocation.</param> /// <returns>The proxy builder object</returns> public IIntoRedirector <TSubject, TResult> Redirect <TResult>(Expression <Func <TSubject, TResult> > invocation) { var child = new ProxyBuilder <TSubject, TResult>() { generator = this.generator, map = this.map }; return(child.SetInvocation(invocation)); }
IToRedirector <TSubject, TProxy, TResult> IProxyBuilder <TSubject, TProxy> .Redirect <TResult>(Expression <Func <TSubject, TResult> > invocation) { var child = new ProxyBuilder <TSubject, TProxy, TResult>() { generator = this.generator, map = this.map, }; return(child.SetInvocation(invocation) as IToRedirector <TSubject, TProxy, TResult>); }
public new IToRedirector <TSubject, TProxy, TResult> Redirect <TResult>(Expression <Func <TSubject, TResult> > invocation) { var builder = new ProxyBuilder <TSubject, TProxy, TResult>( generator: this.generator, map: this.map ); builder.SetInvocation(invocation); return(builder); }