PostSharp 6.10 / / 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: (
public bool IsSelectable { get; }

Property Value

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