Open sandboxFocus

Class LocationValueAttribute

Binds a parameter of a location interception advice to the value of the field or property.

Inheritance
LocationValueAttribute
Namespace: PostSharp.Aspects.Advices
Assembly: PostSharp.dll
Syntax
public sealed class LocationValueAttribute : AdviceParameterAttribute
Remarks

In OnLocationGetValueAdvice, the parameter must be out or ref, and the value that the advice assigns to it is the value returned by the getter. A get advice must have either a parameter bound by this attribute or a LocationInterceptionArgs parameter.

In OnLocationSetValueAdvice, the parameter receives the value assigned to the field or property.

The type of the parameter must be the type of the field or property, or a type parameter of the advice method.

Constructors

Name Description
LocationValueAttribute()

See Also