MetalamaAPI documentationPost­Sharp API migrationPost­Sharp.​AspectsILocation­Interception­Args<T>
Open sandboxFocus

ILocationInterceptionArgs<T> Interface

In PostSharp, this interface exposed the run-time execution context to a location interception advice. However, in Metalama, advice do not execute at run time. Instead, advice are templates that generate run-time code. This run-time code does not need helper objects to represent the execution context.

Namespace: PostSharp.Aspects
Assembly: Metalama.Migration.dll
Syntax
public interface ILocationInterceptionArgs<T> : ILocationInterceptionArgs
Type Parameters
Name Description
T

Properties

Name Description
Binding

Use meta.Target.FieldOrProperty.

Value

In PostSharp, this property is set when ProceedGetValue() is called. It is not necessary on Metalama.

Methods

Name Description
GetCurrentValue()

In the get override advice, call meta.Proceed(). Otherwise, use meta.Target.FieldOrProperty. or IFieldOrProperty..Value.

SetNewValue(T)

In the set override advice, call meta.Proceed(). Otherwise, use meta.Target.FieldOrProperty. or IFieldOrProperty..Value.