Base interface for IMethod, IFieldOrPropertyOrIndexer, IEvent, and INamedType.
Namespace: Metalama.Framework.Code
Assembly: Metalama.Framework.dll
Syntax
public interface IMemberOrNamedType : INamedDeclaration, IDeclaration, IDisplayable, IDiagnosticLocation, ICompilationElement, IMeasurable, IEquatable<IDeclaration>
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 |
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 |
IsSealed | Gets a value indicating whether the member is |
IsStatic | Gets a value indicating whether the member is |
Methods
Name | Description |
---|---|
ToMemberInfo() | Gets a MemberInfo that represents the current member at run time. |
ToRef() |