PostSharpAPI ReferencePost­Sharp.​AspectsAdvice­ArgsDeclaration­Identifier
Open sandboxFocus

AdviceArgs.DeclarationIdentifier Property

DeclarationIdentifier

Gets the DeclarationIdentifier of the declaration to which the advice has been applied.

Declaration
public DeclarationIdentifier DeclarationIdentifier { get;
    [Internal]
    set;
}
Property Value
Type Description
DeclarationIdentifier
Remarks

For usage information, see the remarks of the DeclarationIdentifier type documentation.

note

As a result of weaving optimizations, value of this property may be seen as null in a debugger. If you need to inspect the value in runtime, consider disabling aspect optimizations in the debug build configuration.