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

IMethodInvoker.Invoke 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.

Declaration
dynamic Invoke(params dynamic[] args)
Parameters
Type Name Description
Object[] args
Returns
Type Description
Object

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.

Declaration
dynamic Invoke(IEnumerable<IExpression> args)
Parameters
Type Name Description
IEnumerable<IExpression> args
Returns
Type Description
Object