PostSharp SDK 6.9 / / Class Reference / Post­Sharp.​Sdk.​Code­Model Namespace / Metadata­Declaration Class / Metadata­Declaration Methods / Metadata­Declaration.​Get­Token­Type Method

MetadataDeclaration.GetTokenType Method

Gets the TokenType of the derived declaration.

Namespace:  PostSharp.Sdk.CodeModel
Assembly:  PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 6.9.11.0 (6.9.11.0)
Syntax
C#
public abstract TokenType GetTokenType()

Return Value

Type: TokenType
A TokenType.

Implements

IMetadataDeclaration.GetTokenType()
Remarks
This allows to determines to which metadata table the declaration belongs.
See Also