Metalama 1.0 / / Metalama Documentation / Aspect API / Metalama.​Framework.​Aspects / IAspect­Class

Interface IAspectClass

Represents the metadata of an aspect class.

Namespace: Metalama.Framework.Aspects
Assembly: Metalama.Framework.dll
Syntax
[CompileTime]
public interface IAspectClass

Properties

Name Description
Description

Gets the optional long description of the aspect. This property can be set by adding the DescriptionAttribute custom attribute to the aspect class. By default, it is null.

DisplayName

Gets the name of the aspect displayed to the design-time UI. This property should not be used to report diagnostics (ShortName should be used instead). It can be set by adding the DisplayNameAttribute custom attribute to the aspect class. By default, it is equal to ShortName.

EditorExperienceOptions
FullName

Gets the fully qualified type of the aspect.

IsAbstract

Gets a value indicating whether the aspect class is an abstract class.

IsAttribute

Gets a value indicating whether the aspect class derives from Attribute.

IsInheritable

Gets a value indicating whether instances of this aspect class are inherited by derived declarations. This property returns null when the aspect class implements the IConditionallyInheritableAspect, because each aspect instance can decide whether it is inheritable or not. This property returns true when the aspect class is annotated with the InheritableAttribute custom attribute.

ShortName

Gets the name of the aspect type without the namespace and without the Attribute suffix.

Type

Gets the type of the aspect.