Open sandboxFocus

Interface IMethodInvoker

Allows invocation of the method.

Namespace: Metalama.Framework.Code.Invokers
Assembly: Metalama.Framework.dll
Syntax
[CompileTime]
public interface IMethodInvoker

Methods

Name Description
CreateInvokeExpression(IEnumerable<IExpression>)
Invoke(IEnumerable<IExpression>)

Generates run-time code that invokes the current method with a given list of argument expressions. By default, the target instance of the method is this unless the method is static, and the base implementation of the method is invoked, i.e. the implementation before the current aspect layer. To change the default values, or to use the ?. null-conditional operator, use the With(InvokerOptions) method.

Invoke(params dynamic?[])

Generates run-time code that invokes the current method with a given list of arguments. By default, the target instance of the method is this unless the method is static, and the base implementation of the method is invoked, i.e. the implementation before the current aspect layer. To change the default values, or to use the ?. null-conditional operator, use the With(InvokerOptions) method.

With(IExpression, InvokerOptions)
With(InvokerOptions)

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

With(dynamic?, InvokerOptions)

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

Extension Methods