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

Interface IMember

Base interface for IMethod, IFieldOrProperty, IEvent, but not INamedType.

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

Properties

Name Description
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#).

IsAsync

Gets a value indicating whether the member is async.

IsExplicitInterfaceImplementation

Gets a value indicating whether the member is an explicit implementation of an interface member.

IsOverride

Gets a value indicating whether the member is override.

IsVirtual

Gets a value indicating whether the member is virtual.

Extension Methods

GenericExtensions.GetOriginalDefinition(IMember)
MemberExtensions.IsOverridable(IMember)