Binds a parameter of an advice method to the name of the target declaration.
Namespace: PostSharp.Aspects.Advices
Assembly: PostSharp.dll
Syntax
public sealed class DeclarationNameAttribute : AdviceParameterAttributeRemarks
The parameter must be of type string, and it cannot be ref, in or out. The value is a constant, so binding it does
not allocate memory. For an async method or an iterator, the name is the name of the declared method, not the name of the method of
the state machine.
Constructors
| Name | Description |
|---|---|
| DeclarationNameAttribute() |
Properties
| Name | Description |
|---|---|
| IncludeTypeName | Gets or sets a value indicating whether the name is prefixed with the name of the declaring type and a dot.
The default value is |