PostSharp SDK 6.10 / / Class Reference / Post­Sharp.​Sdk.​Code­Model Namespace / Metadata­Declaration­Tables Class

MetadataDeclarationTables Class

Exposes the metadata tables.
Inheritance Hierarchy
System.Object
  PostSharp.Sdk.CodeModel.MetadataDeclarationTables

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 sealed class MetadataDeclarationTables

The MetadataDeclarationTables type exposes the following members.

Methods
  NameDescription
Public methodAddStronglyReferencedDeclaration
Adds a MetadataDeclaration to the proper table.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetDeclaration
Gets the MetadataDeclaration given its MetadataToken.
Public methodGetEnumerator
Gets an enumerator of all declarations of a given TokenType.
Public methodGetField
Gets the IField corresponding to a given MetadataToken.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetMemberRef
Gets the MemberRefDeclaration corresponding to a given MetadataToken.
Public methodGetMethod
Gets the IMethod corresponding to a given MetadataToken.
Public methodGetStandaloneSignature
Gets the StandaloneSignatureDeclaration corresponding to a given MetadataToken.
Public methodGetType()
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetType(MetadataToken)
Gets the IType corresponding to a given MetadataToken.
Public methodGetUserString
Gets the LiteralString corresponding to a given MetadataToken.
Public methodIsValidToken
Validates a metadata token without getting it's corresponding declaration.
Public methodRemoveDeclaration
Removes a MetadataDeclaration from its table.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Remarks
These provide a by-token access to all metadata declarations of the assembly. This class is accessible on the Tables property.
See Also