Open sandboxFocus

Interface IIntrospectionAspectLayer

Represents an aspect layer in the compilation.

Namespace: Metalama.Framework.Introspection
Assembly: Metalama.Framework.Introspection.dll
Syntax
public interface IIntrospectionAspectLayer
Remarks

To obtain an IIntrospectionAspectLayer, use the AspectLayers property, which is exposed by Metalama.Framework.Workspaces.Workspace, Metalama.Framework.Workspaces.ProjectSet, and Metalama.Framework.Workspaces.Project. From an IIntrospectionAspectLayer, you can also access its parent IIntrospectionAspectClass via the AspectClass property.

Properties

Name Description
AspectClass

Gets the aspect class.

ExplicitOrder

Gets the aspect layer execution order given by the AspectOrderAttribute attributes. Several layers can have the same value for the ExplicitOrder property if ordering is incomplete. For the actual execution order without ambiguities, see the Order property.

Id

Gets the aspect layer identifier.

IsDefaultLayer

Gets a value indicating whether the layer is the default layer of the AspectClass.

LayerName

Gets the name of the layer, or null for the default layer.

Order

Gets the actual order in which the layer is executed against the code model, which typically the inverse order in which the code generated by the layer is executed. This order is determined by evaluating the set of AspectOrderAttribute attributes, and applying alphabetical sort to resolve ambiguities. To get the order that relies only on AspectOrderAttribute attributes, without alphabetical ordering, see ExplicitOrder.

Extension Methods

See Also