Open sandboxFocus

Method With

With(InvokerOptions)

Gets an IMethodInvoker for the same method and target with different options.

Declaration
IMethodInvoker With(InvokerOptions options)
Parameters
Type Name Description
InvokerOptions options
Returns
Type Description
IMethodInvoker

With(dynamic?, InvokerOptions)

Gets an IMethodInvoker for the same method but with a different target instance and optionally different options.

Declaration
IMethodInvoker With(dynamic? target, InvokerOptions options = InvokerOptions.Default)
Parameters
Type Name Description
dynamic target

The run-time expression that represents the target instance of the method. This expression cannot be dynamic. If you need to pass a dynamic expression, you have to explicitly cast it to IExpression.

InvokerOptions options
Returns
Type Description
IMethodInvoker

With(IExpression, InvokerOptions)

Declaration
IMethodInvoker With(IExpression target, InvokerOptions options = InvokerOptions.Default)
Parameters
Type Name Description
IExpression target
InvokerOptions options
Returns
Type Description
IMethodInvoker