PostSharpAPI ReferencePost­Sharp.​Aspects.​AdvicesCopy­Custom­Attributes­AttributeCopy­Custom­Attributes­Attribute
Open sandboxFocus

CopyCustomAttributesAttribute Constructor

CopyCustomAttributesAttribute(Type)

Requires custom attributes present on the aspect class or aspect class member to be copied to the aspect target or to the introduced member, respectively.

Declaration
public CopyCustomAttributesAttribute(Type type)
Parameters
Type Name Description
System.Type type

Base type of custom attributes to be copied.

CopyCustomAttributesAttribute(Type[])

Requires custom attributes present on the aspect class or aspect class member to be copied to the aspect target or to the introduced member, respectively.

Declaration
public CopyCustomAttributesAttribute(params Type[] types)
Parameters
Type Name Description
System.Type[] types

Base types of custom attributes to be copied.