PostSharpAPI ReferencePost­Sharp.​Aspects.​AdvicesIntroduce­Member­Advice­InstanceIs­Virtual
Open sandboxFocus

IntroduceMemberAdviceInstance.IsVirtual Property

IsVirtual

Determines whether the introduced member should be virtual.

Declaration
public Nullable<bool> IsVirtual { get; }
Property Value
Type Description
System.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.