Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

MethodInvoker.Arguments Property

Arguments for the method invocation.

[Visual Basic]
Public Property Arguments() As Object
   Public Get
   End Get
   Public Set
   End Set
End Property
[C#]
public object[] Arguments { public get; public set; }

Remarks

Ordering is significant... the order of the arguments in this property must match the ordering of the various parameters on the target method. There does however exist a small possibility for confusion when the arguments in this property are supplied in addition to one or more named arguments. In this case, each named argument is slotted into the index position corresponding to the named argument... once once all named arguments have been resolved, the arguments in this property are slotted into any remaining (empty) slots in the method parameter list (see the example in the overview of the MethodInvoker class if this is not clear).

If this property is not set, or the value passed to the setter invocation is a null reference (Nothing in Visual Basic) or a zero-length array, a method with no (un-named) arguments is assumed.

See Also

MethodInvoker Class | Spring.Objects.Support Namespace | NamedArguments