MethodBaseAdapter Class
- Namespace
- Kampute.DocToolkit.Metadata.Adapters
- Assembly
- Kampute.DocToolkit.dll
Definition
An abstract adapter that wraps a MethodInfo and provides metadata access for methods and operators.
public abstract class MethodBaseAdapter : VirtualTypeMemberAdapter<MethodInfo>, IMethodBase- Inheritance
- Implements
- Inherited by
Remarks
This class serves as a bridge between the reflection-based MethodInfo and the metadata representation defined by the IMethod interface. It provides access to method-level information regardless of whether the assembly containing the method'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
| MethodBaseAdapter(IType, MethodInfo) | Initializes a new instance of the MethodAdapter class. |
Properties
| IsReadOnly | Gets a value indicating whether the method is read-only. |
| IsSpecialName | Gets a value indicating whether the member is a special name. |
| IsStatic | Gets a value indicating whether the member is static. |
| IsUnsafe | Gets a value indicating whether this member is declared as unsafe. |
| Overloads | Gets all the overloads of the member, excluding the member itself. |
| Parameters | Gets all the parameters declared by the member. |
| Return | Gets the return parameter of the member. |
Methods
| FindOverriddenMember() | Searches the base types for a member that this member overrides. |
| GetMemberVirtuality() | Retrieves the virtuality of the member. |
| GetMemberVisibility() | Retrieves the visibility of the member. |
| GetParameters() | Retrieves the parameters of the method. |
| GetReturnParameter() | Retrieves the return parameter of the method. |
| HasMatchingSignature(IMethodBase) | Determines whether the given method can be considered a base declaration of this method. |
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. |
