Declaration Class |
Base type for all declarations of a module.
Namespace: PostSharp.Sdk.CodeModel
Assembly: PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 2023.0.3.0 (2023.0.3.0)
C#
public abstract class Declaration : Element, IDeclaration, IElement, IModuleElement, ICustomDebuggingInformationOwner
The Declaration type exposes the following members.
Name | Description | |
---|---|---|
Declaration | Initializes a new instance of the Declaration class |
Name | Description | |
---|---|---|
CustomDebuggingInformation |
Name | Description | |
---|---|---|
ClearCache |
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.) | |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
NotifyChildPropertyChanged |
Method invoked when a property of a child has been changed.
(Inherited from Element.) | |
OnPropertyChanged |
Method invoked when a property of the current instance has been changed.
(Inherited from Element.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Name | Description | |
---|---|---|
InsertCustomDebuggingInformation | (Defined by ICustomDebuggingInformationOwnerExtensions.) |
A Declaration is basically an Element
that has a ModuleDeclaration in its ancestor axis.
It is exposed in the Module property.
Reference
System.Object
PostSharp.Sdk.CodeModel.Element
PostSharp.Sdk.CodeModel.Declaration
PostSharp.Sdk.CodeModel.DataSectionDeclaration
PostSharp.Sdk.CodeModel.ExceptionHandler
PostSharp.Sdk.CodeModel.Helpers.DelegateSignature
PostSharp.Sdk.CodeModel.LocalVariableDeclaration
PostSharp.Sdk.CodeModel.MetadataDeclaration
PostSharp.Sdk.CodeModel.MethodBodyDeclaration
PostSharp.Sdk.CodeModel.PermissionDeclaration
PostSharp.Sdk.WeavingSymbols.SymAnnotation
PostSharp.Sdk.WeavingSymbols.SymAspectClass
PostSharp.Sdk.WeavingSymbols.SymAspectInstance
PostSharp.Sdk.WeavingSymbols.SymAspectModule
PostSharp.Sdk.WeavingSymbols.SymAspectUsage
PostSharp.Sdk.WeavingSymbols.SymEvolution
PostSharp.Sdk.WeavingSymbols.SymJoinPoint
PostSharp.Sdk.CodeModel.Element
PostSharp.Sdk.CodeModel.Declaration
PostSharp.Sdk.CodeModel.DataSectionDeclaration
PostSharp.Sdk.CodeModel.ExceptionHandler
PostSharp.Sdk.CodeModel.Helpers.DelegateSignature
PostSharp.Sdk.CodeModel.LocalVariableDeclaration
PostSharp.Sdk.CodeModel.MetadataDeclaration
PostSharp.Sdk.CodeModel.MethodBodyDeclaration
PostSharp.Sdk.CodeModel.PermissionDeclaration
PostSharp.Sdk.WeavingSymbols.SymAnnotation
PostSharp.Sdk.WeavingSymbols.SymAspectClass
PostSharp.Sdk.WeavingSymbols.SymAspectInstance
PostSharp.Sdk.WeavingSymbols.SymAspectModule
PostSharp.Sdk.WeavingSymbols.SymAspectUsage
PostSharp.Sdk.WeavingSymbols.SymEvolution
PostSharp.Sdk.WeavingSymbols.SymJoinPoint