Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

ReflectionUtils.GetMethodByArgumentValues Method

From a given list of methods, selects the method having an exact match on the given argValues' types.

[Visual Basic]
Public Shared Sub GetMethodByArgumentValues( _
   ByVal methods As MethodInfo, _
   ByVal argValues As Object _
)
[C#]
public static MethodInfo GetMethodByArgumentValues(
   MethodInfo[] methods,
   object[] argValues
);

Parameters

methods
the list of methods to choose from
argValues
the arguments to the method

Return Value

the method matching exactly the passed argValues' types

Exceptions

Exception Type Condition
AmbiguousMatchException If more than 1 matching methods are found in the methods list.

See Also

ReflectionUtils Class | Spring.Util Namespace