Open sandboxFocus

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, IEquatable<IDeclaration>

Properties

Name Description
DeclaringType

Gets the type containing the current member.

Definition

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

HasImplementation

Gets a value indicating whether the member has an implementation or is only a definition without a body.

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.

IsExtern

Gets a value indicating whether the member has an external implementation, i.e. has the extern modifier.

IsOverride

Gets a value indicating whether the member is override.

IsVirtual

Gets a value indicating whether the member is virtual.

OverriddenMember

Methods

Name Description
ToRef()

Extension Methods