Represents a custom attribute (CustomAttribute).

Namespace:  PostSharp.CodeModel
Assembly:  PostSharp.Core (in PostSharp.Core.dll)

Syntax

Remarks

Any MetadataDeclaration can have custom attributes. They are exposed on the CustomAttributes property.

If you change any member of an instance of CustomAttributeDeclaration, you have to call the InvalidateSerialization()()() to force the custom attribute to be serialized again.

Inheritance Hierarchy

System..::.Object
  PostSharp.CodeModel..::.Element
    PostSharp.CodeModel..::.Declaration
      PostSharp.CodeModel..::.MetadataDeclaration
        PostSharp.CodeModel..::.CustomAttributeDeclaration

See Also