ExtensionContainerInfo.GetNormalizedMethodInfo Method

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

Definition

Retrieves the normalized reflection information for the specified method.
public MethodInfo GetNormalizedMethodInfo(MethodInfo methodInfo)

Parameters

methodInfo MethodInfo
The reflection information of the method to normalize.

Returns

MethodInfo
A MethodInfo representing the normalized reflection information for the specified method.

Exceptions

ArgumentNullException
Thrown if methodInfo is null.
ArgumentException
Thrown if methodInfo does not belong to the container type.

Remarks

This method returns the normalized reflection information for the specified method if it is an extension method or property accessor. If the method does not represent an extension member, the original method is returned.

The normalized method of an extension method is a logical view of the method as it would appear when invoked on the extended type, rather than as a static method on the container type that has the extended type as its first parameter.