IWithExtensionBehavior.ExtensionBlock Property

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

Definition

Gets the extension block where the member is defined if the member is a block extension member.
IExtensionBlock ExtensionBlock { get; }

Property Value

IExtensionBlock
The extension block where the member is defined, or null if the member is not an extension member or is a classic (non-block) extension method.

Remarks

The extension block provides context about the extension member, including its receiver parameter and other members defined within the same block.

If the member is a classic extension method, the extension block will be null. In such cases, the receiver parameter is represented directly by the first parameter of the method.