MethodInvoker Delegate

Definition

Namespace Stunts
Assembly Stunts.dll

Invokes one member on target using the arguments of invocation.

public delegate IMethodReturn MethodInvoker(object target, IMethodInvocation invocation);

Parameters

target
Object

The instance that receives the call. The stunt runs its base body, or throws when the member has none.

invocation
IMethodInvocation

The invocation whose arguments are used.

Returns

IMethodReturn
The result of the call, including updated ref and out arguments.