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

Interface IMemberOrNamedType

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.

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)