Forwards an invocation to another instance, or to an instance created on first use.
public class TargetBehavior : IStuntBehavior
Constructors and members named Equals, GetHashCode, or ToString
are left to the rest of the pipeline. A factory that returns null
does the same, so a class stunt runs its base implementation and an interface stunt
reports . The factory runs once for this behavior.
kind:method, kind:property, kind:ctor. Press Esc to clear.TargetBehavior(Func<Object?>)Forwards to the instance factory returns on the first forwarded call.TargetBehavior(Object)Forwards to target.AppliesTo(IMethodInvocation)Skips constructors and the object identity members.Execute(IMethodInvocation, ExecuteHandler)Invokes the same member on the target. The target's exception propagates unchanged.