PostSharp 6.4 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Aspects.​Advices Namespace / Introduce­Member­Advice­Instance Class / Introduce­Member­Advice­Instance Properties / Introduce­Member­Advice­Instance.​Is­Virtual Property

IntroduceMemberAdviceInstance.IsVirtual Property

Determines whether the introduced member should be virtual.

Namespace:  PostSharp.Aspects.Advices
Assembly:  PostSharp (in PostSharp.dll) Version: 6.4.11.0 (6.4.11.0)
Syntax
C#
public Nullable<bool> IsVirtual { get; }

Property Value

Type: Nullable<Boolean>
Remarks

When this property is false and the member already exists in a base type and is virtual, the member is overridden and marked as sealed.

When this property is set to null, the introduced member is virtual if it exists in a base type as a virtual member, otherwise non-virtual.

See Also