PostSharp SDK 6.10 / / Class Reference / Post­Sharp.​Sdk.​Code­Model Namespace / ITaggable Interface

ITaggable Interface

Defines the semantics of a taggable object. User code can add custom pieces of information to PostSharp objects using this mechanism. DomainTags are identified by a Guid. There is no difference between an absent tag and a null tag value.

Namespace:  PostSharp.Sdk.CodeModel
Assembly:  PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 6.10.14.0 (6.10.14.0)
Syntax
C#
public interface ITaggable

The ITaggable type exposes the following members.

Methods
  NameDescription
Public methodGetTag<T>
Gets a tag associated with the current declaration.
Public methodSetTag<T>
Set a tag to the current declaration.
See Also