PostSharpAPI ReferencePost­Sharp.​Aspects.​AdvicesIntroduce­Member­Attribute
Open sandboxFocus

IntroduceMemberAttribute Class

Custom attribute that, when applied on a method, event or property of an aspect class, specifies that this method, event or property should be introduced into the types to which the aspect is applied.

Inheritance
System.Object
IntroduceMemberAttribute
Namespace: PostSharp.Aspects.Advices
Assembly: PostSharp.dll
Syntax
[RequiresDebuggerEnhancement]
public sealed class IntroduceMemberAttribute : Advice
Remarks

Methods, properties and events annotated with IntroduceMemberAttribute must be public.

If the method, event or property is in a C# 8.0 nullable annotations context, its nullability information will be copied into the types as well.

Constructors

Name Description
IntroduceMemberAttribute()

Properties

Name Description
IsIsVirtualSpecified

Determines whether the IsVirtual property has been specified.

IsVirtual

Determines whether the introduced member should be virtual.

OverrideAction

Determines the action to be overtaken when the member to be introduced already exists in the type to which the aspect is applied, or to a base type.

Visibility

Determines the visibility (Public, (Family, ...) of the introduced member.

See Also