Open sandboxFocus

Interface IMethodInterceptionInfo

Describes the interception of a method call that a template implements, as given by the Method property.

Namespace: Metalama.Extensions.Interceptors
Assembly: Metalama.Extensions.Interceptors.dll
Syntax
[CompileTime]
[InternalImplement]
public interface IMethodInterceptionInfo
Remarks

The parameters are parameters of the generated method, which is meta.Target.Method.

Properties

Name Description
AddedParameters

Gets the parameters of the generated method that the template or a Configure(Action<IInterceptorMethodBuilder>) delegate adds, whose values are given by WithArgs(object) or by the SetArgument(IParameter, IExpression) method.

ArgumentParameters

Gets the parameters of the generated method that receive the arguments of the intercepted method, in the order of the parameters of the intercepted method.

DispatchKind

Gets how the call is dispatched at the call sites.

InterceptedMethod

Gets the intercepted method, as the generated method calls it. When the generated method is generic over the type parameters of the intercepted method, its type arguments are the type parameters of the generated method. Otherwise, they are the type arguments of the call sites, which all the call sites that share the generated method have in common.

ReceiverMapping

Gets how the receiver of the call is passed to the generated method.

ReceiverParameter

Gets the parameter of the generated method that receives the receiver of the call, or null when the ReceiverMapping property is None or This.

Extension Methods