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
contextIDocumentationContext- The documentation context to search for the member.
memberIMember- The reflection metadata of the member to find.
Returns
- MemberModel
- The documentation model representing the member, or
nullif the member is not found in the context.
Exceptions
- ArgumentNullException
- Thrown when
contextormemberisnull.
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.
