Open sandboxFocus

Class LocationLevelAdviceArgs

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.

Namespace: PostSharp.Aspects.Internals
Assembly: Metalama.Migration.dll
Syntax
[Obsolete("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.", false)]
public abstract class LocationLevelAdviceArgs : AdviceArgs

Properties

Name Description
Location

In Metalama, use meta.Target.FieldOrProperty. If you need a run-time object, use IFieldOrProperty.ToFieldOrPropertyInfo().

LocationFullName

Not implemented in Metalama.

LocationName

In Metalama, use meta.Target.FieldOrProperty.Name.

Value

In Metalama, use the value template parameter.