LocationInterceptionArgs Class
In PostSharp, this object exposed the run-time execution context to the 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.
Implements
Namespace: PostSharp.Aspects
Assembly: Metalama.Migration.dll
Syntax
public abstract class LocationInterceptionArgs : LocationLevelAdviceArgs, ILocationInterceptionArgs
Constructors
Name | Description |
---|---|
LocationInterceptionArgs(Arguments) |
Properties
Name | Description |
---|---|
Binding | Use meta.Target.FieldOrProperty. |
Index | Use meta.Target.Parameters. |
Methods
Name | Description |
---|---|
Execute<TPayload>(ILocationInterceptionArgsAction<TPayload>, ref TPayload) | No equivalent in Metalama. |
GetCurrentValue() | In the get override advice, call meta.Proceed(). Otherwise, use meta.Target.FieldOrProperty. |
ProceedGetValue() | In the get override advice, call meta.Proceed(). Otherwise, use meta.Target.FieldOrProperty. |
ProceedSetValue() | In the set override advice, call meta.Proceed(). Otherwise, use meta.Target.FieldOrProperty. |
SetNewValue(Object) | In the set override advice, call meta.Proceed(). Otherwise, use meta.Target.FieldOrProperty. |