Assembly: PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 188.8.131.52 (184.108.40.206)
public abstract class Element
Thetype exposes the following members.
Clear the cache (typically mapping to System.Reflection or, if the current element is a reference, to the related definition) of the current and all its children.
Determines whether the specified object is equal to the current object.(Inherited from Object.)
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)
Serves as the default hash function.(Inherited from Object.)
Gets the Type of the current instance.(Inherited from Object.)
Creates a shallow copy of the current Object.(Inherited from Object.)
Method invoked when a property of a child has been changed.
Method invoked when a property of the current instance has been changed.
Returns a string that represents the current object.(Inherited from Object.)
The CLI module is basically represented as a tree of objects what are called Declaration in PostSharp. The root of the module tree is the ModuleDeclaration. Modules are contained in assemblies (AssemblyEnvelope) and assemblies are bounded in the scope of a specified .
All elements that are a part of aare represented by the type. This class is basically a tree node. instances have two properties: gives the direct parent, and gives the root .
The child-parent relationship is managed automatically when the child is related to the parent either adding it into a collection of children, either setting it as the value of a property of the parent.