VirtualTypeMemberAdapter<T> Class

Namespace
Kampute.DocToolkit.Metadata.Adapters
Assembly
  • Kampute.DocToolkit.dll

Definition

An abstract base class for adapters that wrap reflected type members that can be virtual.
public abstract class VirtualTypeMemberAdapter<T> : TypeMemberAdapter<T>, IVirtualTypeMember
	where T : MemberInfo
Inheritance
Implements
Inherited by

Type Parameters

T
The type of the reflected member.

Remarks

This class serves as a bridge between the reflection-based MemberInfo and the metadata representation defined by the IVirtualTypeMember interface. It provides access to virtual type member-level information regardless of whether the assembly containing the member was loaded via Common Language Runtime (CLR) or Metadata Load Context (MLC).

Thread Safety

All public members of the type are guaranteed to be thread-safe.

Constructors

VirtualTypeMemberAdapter<T>(IType, T)Initializes a new instance of the VirtualTypeMemberAdapter<T> class.

Properties

GenericMemberDefinitionGet the generic member definition for this member, if it is a constructed generic member.
ImplementedMemberGets the interface member that this member implements, if any.
IsExplicitInterfaceImplementationGets a value indicating whether the member is an explicit interface implementation.
IsInterfaceMemberGets a value indicating whether the member is declared in an interface.
OverriddenMemberGets the base member that this member overrides in a base class, if any.
VirtualityGets the virtuality of the member.

Methods

FindGenericDefinition()Searches for the generic definition of this member if it is a constructed generic member.
FindImplementedMember()Searches the implemented interfaces for a member that this member implements.
FindOverriddenMember()Searches the base types for a member that this member overrides.
GetMemberVirtuality()Retrieves the virtuality of the member.

Extension Methods

GetInheritedMember(this IMember)Retrieves the member that this member directly inherits from.
GetMemberDefinition(this IMember)Retrieves the definition of the member, resolving any constructed or decorated forms to their underlying definitions.
TryGetOwnTypeParameters(this IMember, out IEnumerable<ITypeParameter>)Attempts to get the type parameters declared directly by the specified member if it is generic.