Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

MethodParameter.ForMethodOrConstructor Method

Create a new MethodParameter for the given method or donstructor. This is a convenience constructor for scenarios where a Method or Constructor reference is treated in a generic fashion.

[Visual Basic]
Public Shared Sub ForMethodOrConstructor( _
   ByVal methodOrConstructorInfo As Object, _
   ByVal parameterIndex As Integer _
)
[C#]
public static MethodParameter ForMethodOrConstructor(
   object methodOrConstructorInfo,
   int parameterIndex
);

Parameters

methodOrConstructorInfo
The method or constructor to specify a parameter for.
parameterIndex
Index of the parameter.

Return Value

the corresponding MethodParameter instance

See Also

MethodParameter Class | Spring.Core Namespace