IExtensionReflectionRepository.GetExtensionMemberInfo Method

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

Definition

Retrieves the extension member information for the specified method, if it is an extension method or property accessor.
MemberInfo GetExtensionMemberInfo(MethodInfo methodInfo)

Parameters

methodInfo MethodInfo
The reflection information of the method to examine.

Returns

MemberInfo
The extension member information if the method is an extension method or property accessor; otherwise, null.

Exceptions

ArgumentNullException
Thrown if methodInfo is null.
ArgumentException
Thrown if methodInfo does not belong to the same assembly as the resolver.

Remarks

This method returns a MemberInfo representing the extension member associated with the specified methodInfo.