PostSharp6.3/API Reference/Post­Sharp.​Aspects Namespace/ILocation­Interception­Args Interface/ILocation­Interception­Args Properties/ILocation­Interception­Args.​Location Property

ILocationInterceptionArgs.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: 6.3.9.0 (6.3.9.0)
Syntax
C#
LocationInfo Location { get; set; }

Property Value

Type: LocationInfo
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