PostSharp4.3/API Reference/Post­Sharp.​Aspects Namespace/Location­Interception­Args Class/Location­Interception­Args Properties/Location­Interception­Args.​Location Property
LocationInterceptionArgs.Location Property
Gets the location (field, property or parameter) related to the aspect or advice being executed.

Namespace: PostSharp.Aspects
Assembly: PostSharp (in PostSharp.dll) Version: 4.3.48.0 (4.3.48.0)
Syntax
C#
public LocationInfo Location { get; set; }

Property Value

Type: LocationInfo

Implements

ILocationInterceptionArgs.Location
Remarks
Note Note
Using this property causes the aspect weaver to generate code that has non-trivial runtime overhead. Avoid using this property whenever possible. One of the possible solution is to use compile-time initialization of aspect instances and to make use of reflection only at build time.
See Also