IMemberAdapterRepository.GetMethodMetadata Method

Namespace
Kampute.DocToolkit.Metadata
Assembly
  • Kampute.DocToolkit.dll
IMemberAdapterRepository.GetMethodMetadata(MethodInfo)Gets the method metadata for the specified method within the assembly.
IMemberAdapterRepository.GetMethodMetadata<T>(MethodInfo)Gets the method metadata for the specified method within the assembly.

IMemberAdapterRepository.GetMethodMetadata(MethodInfo)

Gets the method metadata for the specified method within the assembly.
IMethodBase GetMethodMetadata(MethodInfo methodInfo)

Parameters

methodInfo MethodInfo
The reflection method to get metadata for.

Returns

IMethodBase
A metadata representation of the specified method.

Exceptions

ArgumentNullException
Thrown when methodInfo is null.
ArgumentException
Thrown when methodInfo does not belong to the assembly.

IMemberAdapterRepository.GetMethodMetadata<T>(MethodInfo)

Gets the method metadata for the specified method within the assembly.
T GetMethodMetadata<T>(MethodInfo methodInfo)
	where T : IMethodBase
This method has a default implementation in the interface.

Type Parameters

T
The specific type of method metadata to retrieve.

Parameters

methodInfo MethodInfo
The reflection method to get metadata for.

Returns

T
A metadata representation of the specified method.

Exceptions

ArgumentNullException
Thrown when methodInfo is null.
ArgumentException
Thrown when methodInfo does not belong to the assembly.
InvalidCastException
Thrown when the retrieved method metadata cannot be cast to T.