Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

ConstructorArgumentValues.GetArgumentValue(Int32, Type, ISet) Method

Look for an argument value that either corresponds to the given index in the constructor argument list or generically matches by Type.

[Visual Basic]
Public Overridable Overloads Sub GetArgumentValue( _
   ByVal index As Integer, _
   ByVal requiredType As Type, _
   ByVal usedValues As ISet _
)
[C#]
public virtual ValueHolder GetArgumentValue(
   int index,
   Type requiredType,
   ISet usedValues
);

Parameters

index
The index in the constructor argument list.
requiredType
The Type to match.
usedValues
A ISet of ConstructorArgumentValues.ValueHolder objects that have already been used in the current resolution process and should therefore not be returned again; this allows one to return the next generic argument match in the case of multiple generic argument values of the same type.

Return Value

The ConstructorArgumentValues.ValueHolder for the argument, or a null reference (Nothing in Visual Basic) if none is set.

See Also

ConstructorArgumentValues Class | Spring.Objects.Factory.Config Namespace | ConstructorArgumentValues.GetArgumentValue Overload List