IExtensionBlock Interface

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

Definition

Defines a contract for accessing metadata about extension blocks.
public interface IExtensionBlock : IWithMethods, IWithProperties, ITypeMember
Extends
Implemented by

Remarks

An extension block represents a logical grouping of extension members that share the same receiver type (the type being extended).

Properties

IsGenericBlockGets a value indicating whether this extension block is generic.
ReceiverGets the receiver parameter information for this extension block.
TypeParametersGets the generic type parameters of this extension block if it is generic.

Methods

Extends(IType)Determines whether this extension block extends the specified 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.