InterfaceTypeAdapter Class
- Namespace
- Kampute.DocToolkit.Metadata.Adapters
- Assembly
- Kampute.DocToolkit.dll
Definition
An adapter that wraps a reflection Type representing an interface type and provides metadata access.
public class InterfaceTypeAdapter : GenericCapableTypeAdapter, IInterfaceType- Inheritance
- Implements
Remarks
This class serves as a bridge between the reflection-based Type and the metadata representation defined by the IInterfaceType interface. It provides access to interface-level information regardless of whether the assembly containing the interface'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
| InterfaceTypeAdapter(object, Type) | Initializes a new instance of the InterfaceTypeAdapter class. |
Properties
| Events | Gets all the public or protected events declared, overridden, or implemented by the type. |
| Interfaces | Gets all the interfaces that the type extends, implements, or inherits. |
| Methods | Gets all the public or protected methods declared, overridden, or implemented by the type. |
| Properties | Gets all the public or protected properties declared, overridden, or implemented by the type. |
Methods
| GetEvents() | Gets the events declared by the interface. |
| GetInterfaces() | Gets the interfaces extended or inherited by the interface. |
| GetMethods() | Gets the methods declared by the interface. |
| GetProperties() | Gets the properties declared by the interface. |
| IsAssignableFrom(IType) | Determines whether the instances of the specified type can be assigned to variables of the current type. |
| IsCompilerGeneratedMember(MemberInfo) | Determines whether the specified member is compiler-generated. |
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. |
