PostSharp 6.8 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Reflection Namespace / Semantic­Info Structure / Semantic­Info Properties / Semantic­Info.​Is­Selectable Property

SemanticInfo.IsSelectable Property

Determines whether the declaration can be safely selected in a pointcut using the standard System.Reflection API.

Namespace:  PostSharp.Reflection
Assembly:  PostSharp (in PostSharp.dll) Version: 6.8.6.0 (6.8.6.0)
Syntax
C#
public bool IsSelectable { get; }

Property Value

Type: Boolean
Remarks
This property is false for declarations such as anonymous methods or local functions because their MSIL implementation can move from one type to another because of a mere change of the method body in C#. It is also false for implementation details such as anonymous method cache fields, or closure types, which should never be advised.
See Also