ImportMemberOrder Enumeration |
Enumeration of moments when members should be imported into an aspect.
Namespace: PostSharp.Aspects.Advices
Assembly: PostSharp (in PostSharp.dll) Version: 2023.0.3.0 (2023.0.3.0)
C#
public enum ImportMemberOrder
Member name | Value | Description | |
---|---|---|---|
Default | 0 | AfterIntroductions | |
BeforeIntroductions | 1 | Before the aspect introduces its own members. This is similar to calling the overridden method using the base keyword in C#. The overridden method implementation is always selected, even if the method is virtual. | |
AfterIntroductions | 0 | After the aspect introduces its own members. Note that importing a member introduced by the current aspect makes sense only if the member has been introduced as virtual; in this case, the the imported member is dynamically resolved using the virtual table of the target object. |