PostSharpAPI ReferencePost­Sharp.​ExtensibilityImplementation­Bound­Attribute­Attribute
Open sandboxFocus

ImplementationBoundAttributeAttribute Class

Custom attribute meaning that custom attributes of a given type are bound to the implementation, not to the semantics.

Inheritance
System.Object
ImplementationBoundAttributeAttribute
Namespace: PostSharp.Extensibility
Assembly: PostSharp.dll
Syntax
public sealed class ImplementationBoundAttributeAttribute : Attribute
Remarks

This custom attribute influences whether instances of a given other custom attribute should be moved from the semantic to the implementation, when the semantic is detached from the implementation.

The ImplementationBoundAttributeAttribute is currently only honored when you apply an interception aspect (LocationInterceptionAspect) to a field. In this case, PostSharp creates a property from the field. The property becomes the semantic and the field, made private, becomes the implementation. Most custom attributes apply to semantics, so they are moved from the field the property. If a custom attribute must not be moved, it should be marked with the ImplementationBoundAttributeAttribute custom attribute.

Constructors

Name Description
ImplementationBoundAttributeAttribute(Type)

Initializes the new ImplementationBoundAttributeAttribute.

Properties

Name Description
AttributeType

Gets the type of the custom attribute that should not be moved from implementation to semantic.