Metalama 1.0 / / Metalama Documentation / Aspect API / Metalama.​Framework.​Code / IMember­Or­Named­Type

Interface IMemberOrNamedType

Base interface for IMethod, IFieldOrProperty, IEvent, and INamedType.

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

Properties

Name Description
Accessibility

Gets the member accessibility (or visibility), i.e. Private, Protected and so on.

DeclaringType

Gets the type containing the current member, or null if the current member is not contained within a type (which should not happen in C#).

ExecutionScope

Gets a value indicating whether the declaration executes at compile time, at run time, or both.

IsAbstract
IsNew

Gets a value indicating whether the member is new.

IsSealed

Gets a value indicating whether the member is sealed.

IsStatic

Gets a value indicating whether the member is static.

Methods

Name Description
ToMemberInfo()

Gets a MemberInfo that represents the current member at run time.

Extension Methods

GenericExtensions.IsSelfOrDeclaringTypeGeneric(IMemberOrNamedType)
GenericExtensions.GetOriginalDefinition(IMemberOrNamedType)