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
methodInfoMethodInfo- The reflection method to get metadata for.
Returns
- IMethodBase
- A metadata representation of the specified method.
Exceptions
- ArgumentNullException
- Thrown when
methodInfoisnull. - ArgumentException
- Thrown when
methodInfodoes 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 : IMethodBaseThis method has a default implementation in the interface.
Type Parameters
T- The specific type of method metadata to retrieve.
Parameters
methodInfoMethodInfo- The reflection method to get metadata for.
Returns
- T
- A metadata representation of the specified method.
Exceptions
- ArgumentNullException
- Thrown when
methodInfoisnull. - ArgumentException
- Thrown when
methodInfodoes not belong to the assembly. - InvalidCastException
- Thrown when the retrieved method metadata cannot be cast to
T.
