DocumentationContextExtensions.FindMember Method

Namespace
Kampute.DocToolkit
Assembly
  • Kampute.DocToolkit.dll

Definition

Finds the model corresponding to the specified reflection metadata within the documentation context.
public static MemberModel FindMember(this IDocumentationContext context, IMember member)

Parameters

context IDocumentationContext
The documentation context to search for the member.
member IMember
The reflection metadata of the member to find.

Returns

MemberModel
The documentation model representing the member, or null if the member is not found in the context.

Exceptions

ArgumentNullException
Thrown when context or member is null.

Remarks

This method provides a convenient way to locate the documentation model that corresponds to a given reflection member. It searches the assemblies in the context for the specified member and returns the corresponding documentation model if found. The method handles both top-level types and nested members, making it suitable for resolving any member in the context.