IMethod Interface

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

Definition

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

Properties

ImplementedMethodGets the interface method that this method implements, if any.
IsAsyncGets a value indicating whether the method is asynchronous.
IsExtensionGets a value indicating whether the method is an extension method.
IsGenericMethodGets a value indicating whether the method is generic.
IsReadOnlyGets a value indicating whether the method is read-only.
OverriddenMethodGets the base method that this method overrides, if any.
TypeParametersGets the type parameters declared by the method if it is generic.

Methods

IsExtensionMethodFor(IType)Determines whether the method is an extension method for the given 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.
TryGetOwnTypeParameters(this IMember, out IEnumerable<ITypeParameter>)Attempts to get the type parameters declared directly by the specified member if it is generic.