Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

MethodNode.GetBestMethod Method

Gets the best method given the name, argument values, for a given type.

[Visual Basic]
Public Shared Sub GetBestMethod( _
   ByVal type As Type, _
   ByVal methodName As String, _
   ByVal bindingFlags As BindingFlags, _
   ByVal argValues As Object _
)
[C#]
public static MethodInfo GetBestMethod(
   Type type,
   string methodName,
   BindingFlags bindingFlags,
   object[] argValues
);

Parameters

type
The type on which to search for the method.
methodName
Name of the method.
bindingFlags
The binding flags.
argValues
The arg values.

Return Value

Best matching method or null if none found.

See Also

MethodNode Class | Spring.Expressions Namespace