MetalamaAPI documentationAspect APIMetalama.​Framework.​CodeIMember­Or­Named­Type
Open sandboxFocus

IMemberOrNamedType Interface

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.

Definition

Gets the definition of the member or type. If the current declaration is a generic type instance, a generic method instance, or a member of a generic type instance, this returns the generic definition. Otherwise, it returns the current instance.

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 hides another member defined in base types. When true, this is equivalent to new keyword being expected in the source code although this property will return true even when the new keyword is not present but expected.

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 System.Reflection.MemberInfo that represents the current member at run time.

Extension Methods

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