MetalamaAPI documentationAspect APIMetalama.​Framework.​Code.​InvokersIMethod­Invoker
Open sandboxFocus

IMethodInvoker Interface

Allows invocation of the method.

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

Methods

Name Description
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(Object[])

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(InvokerOptions)

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

With(Object, InvokerOptions)

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