ClassTypeAdapter Class
- Namespace
- Kampute.DocToolkit.Metadata.Adapters
- Assembly
- Kampute.DocToolkit.dll
Definition
An adapter that wraps a reflection Type representing a class type and provides metadata access.
public class ClassTypeAdapter : CompositeTypeAdapter, IClassType- Inheritance
- Implements
Remarks
This class serves as a bridge between the reflection-based Type and the metadata representation defined by the IClassType interface. It provides access to class-level information regardless of whether the assembly containing the class 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
| ClassTypeAdapter(object, Type) | Initializes a new instance of the ClassTypeAdapter class. |
Properties
| ExtensionBlocks | Gets the collection of extension blocks defined in the class. |
| IsAbstract | Gets a value indicating whether the class is abstract. |
| IsSealed | Gets a value indicating whether the class is sealed. |
| IsStatic | Gets a value indicating whether the member is static. |
| MayContainExtensionMembers | Gets a value indicating whether the class may contain extension members. |
Methods
| GetExtensionBlocks() | Retrieves the extension blocks declared by this class type. |
| GetMethods() | Retrieves the visible methods declared by the type. |
| GetProperties() | Retrieves the visible properties declared by the type. |
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. |
| GetMembers(this IType) | Gets all members directly declared by the type, excluding nested types. |
| GetMembersIncludingNested(this IType) | Gets all members of the type, including its nested types and their members at all nesting levels. |
| TryGetOwnTypeParameters(this IMember, out IEnumerable<ITypeParameter>) | Attempts to get the type parameters declared directly by the specified member if it is generic. |
