Metalama 1.0 / / Metalama Documentation / Aspect API / Metalama.​Framework.​Code / IConstructor

Interface IConstructor

Represents an instance constructor or a static constructor.

Namespace: Metalama.Framework.Code
Assembly: Metalama.Framework.dll
Syntax
public interface IConstructor : IMethodBase, IHasParameters, IMember, IMemberOrNamedType, INamedDeclaration, IDeclaration, IDisplayable, IDiagnosticLocation, ICompilationElement, IMeasurable

Properties

Name Description
InitializerKind

Gets a ConstructorInitializerKind that specifies the initializer semantics of the constructor.

Methods

Name Description
ToConstructorInfo()

Gets a ConstructorInfo that represents the current constructor at run time.

Extension Methods

GenericExtensions.GetOriginalDefinition(IConstructor)
GenericExtensions.ForTypeInstance(IConstructor, INamedType)