TypeMemberAdapter<T> Class
- Namespace
- Kampute.DocToolkit.Metadata.Adapters
- Assembly
- Kampute.DocToolkit.dll
Definition
An abstract base class for adapters that wrap reflected type members and provide metadata access.
public abstract class TypeMemberAdapter<T> : MemberAdapter<T>, ITypeMember
where T : MemberInfo- Inheritance
- object
- MetadataAdapter<T>
- AttributeAwareMetadataAdapter<T>
- MemberAdapter<T>
- TypeMemberAdapter<T>
- Implements
- Inherited by
Type Parameters
T- The type of the underlying member info.
Remarks
This class serves as a bridge between the reflection-based MemberInfo and the metadata representation defined by the ITypeMember interface. It provides access to type member-level information regardless of whether the assembly containing the member's type 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
| TypeMemberAdapter<T>(IType, T) | Initializes a new instance of the TypeMemberAdapter<T> class. |
Properties
| Assembly | Gets the assembly that contains the member. |
| CodeReference | Gets the code reference for the member. |
| DeclaringType | Gets the declaring type of the member, if any. |
| IsDirectDeclaration | Gets a value indicating whether the member represents a direct declaration. |
| Namespace | Gets the namespace of the member. |
Methods
| CreateAttributeMetadata(CustomAttributeData) | Creates a custom attribute metadata instance for the given attribute data. |
| GetCodeReferenceParts() | Retrieves the code reference parts for this member. |
| ToString() | Returns a string that represents the current object. |
Explicit Interface Implementations
| IMember.DeclaringType | Gets the declaring type of the member, if any. |
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. |
