Metalama 1.0 / / Metalama Documentation / Aspect API / Metalama.​Framework.​Code / Declaration­Kind

Class DeclarationKind

Kinds of IDeclaration.

Inheritance
DeclarationKind
Namespace: Metalama.Framework.Code
Assembly: Metalama.Framework.dll
Syntax
[CompileTime]
public sealed class DeclarationKind : Enum

Fields

Name Description
AssemblyReference

A reference assembly, implementing IAssembly. Note that the current assembly is represented by ICompilation that inherits IAssembly, but the DeclarationKind for the current compilation is Compilation and not AssemblyReference.

Attribute

IAttribute.

Compilation

ICompilation.

Constructor

IConstructor.

Event

IEvent.

Field

IField.

Finalizer

IMethod that is a finalizer (historically referred to as destructors).

Indexer

IIndexer.

ManagedResource

IManagedResource.

Method

IMethod.

NamedType

INamedType.

Namespace

INamespace.

None

Not a valid declaration represented by IDeclaration.

Operator

IMethod that is an operator.

Parameter

IParameter.

Property

IProperty.

TypeParameter

ITypeParameter.

value__