PostSharp SDK6.6//Post­Sharp.​Sdk.​Code­Model Namespace/Metadata­Declaration Class

MetadataDeclaration Class

Base class for all declarations represented in the metadata tables. Metadata declarations have a token (MetadataToken) and may have custom attributes (CustomAttributeDeclaration).
Inheritance Hierarchy
System.Object
  PostSharp.Sdk.CodeModel.Element
    PostSharp.Sdk.CodeModel.Declaration
      PostSharp.Sdk.CodeModel.MetadataDeclaration
        More...

Namespace:  PostSharp.Sdk.CodeModel
Assembly:  PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 6.6.3.0 (6.6.3.0)
Syntax
C#
public abstract class MetadataDeclaration : Declaration, 
	IMetadataDeclaration, IDeclaration, IElement, IModuleElement, ITaggable

The MetadataDeclaration type exposes the following members.

Properties
  NameDescription
Public propertyCustomDebuggingInformation (Inherited from Declaration.)
Public propertyIsOriginal
Determines whether the current declaration existed in the source assembly.
Public propertyMetadataToken
Gets or sets the token of the current declaration.
Public propertyOriginalDeclaration
When the declaration represents another declaration in the source assembly, this property refers to this declaration. When using GetReflectionObject(Type[], Type[], BindingOptions), the original declaration should actually be retrieved.
Public propertyParentMember
Gets the parent member of the current declaration.
Public propertyParentType
Gets the parent type of the current declaration.
Methods
  NameDescription
Public methodClearCache
Clear the cache (typically mapping to System.Reflection or, if the current element is a reference, to the related definition) of the current Element and all its children.
(Inherited from Element.)
Public methodDispose Obsolete.
Releases all resources used by the MetadataDeclaration
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetTag<T>
Gets a tag associated with the current declaration.
Public methodGetTokenType
Gets the TokenType of the derived declaration.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodNotifyChildPropertyChanged
Method invoked when a property of a child has been changed.
(Inherited from Element.)
Protected methodOnPropertyChanged
Method invoked when a property of the current instance has been changed.
(Inherited from Element.)
Public methodSetTag<T>
Set a tag to the current declaration.
Public methodToString (Overrides Object.ToString().)
Operators
  NameDescription
Public operatorStatic memberImplicit(MetadataDeclaration to MessageLocation)
Wraps a MetadataDeclaration into a MessageLocation.
See Also
Inheritance Hierarchy