Open sandboxFocus

Interface IExistingMethodInterception

The result of one call site whose call is redirected to an existing method, created by RedirectToExistingMethod(IMethod). It is a complete interception, which the delegate given to ForEachSite(Func<IMethodInterceptionSite, IMethodInterception>) can return. IExistingMethodRegistration is its counterpart for a result that applies to every call site.

Namespace: Metalama.Extensions.Interceptors
Assembly: Metalama.Extensions.Interceptors.dll
Syntax
[CompileTime]
[InternalImplement]
public interface IExistingMethodInterception : IMethodInterception

Methods

Name Description
WithArgs(object)

Sets the arguments that bind parameters and type parameters of the existing method by name.

Extension Methods