IMethod Interface

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

Definition

Defines a contract for accessing method metadata.
public interface IMethod : IWithExtensionBehavior, IMethodBase
Extends
Implemented by

Properties

ImplementedMethodGets the interface method that this method implements, if any.
IsClassicExtensionMethodGets a value indicating whether the method is a classic extension method.
IsGenericMethodGets a value indicating whether the method is generic.
OverriddenMethodGets the base method that this method overrides, if any.
TypeParametersGets the type parameters declared by the method if it is generic.

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.