Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

ReflectionUtils.GetConstructorByArgumentValues Method

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

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

Parameters

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

Return Value

the constructor 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