Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

AutowireUtils.SortConstructors Method

Sorts the supplied constructors, preferring public constructors and "greedy" ones (that have lots of arguments).

[Visual Basic]
Public Shared Sub SortConstructors( _
   ByVal constructors As ConstructorInfo _
public static void SortConstructors(
   ConstructorInfo[] constructors


The ConstructorInfo array to be sorted.


The result will contain public constructors first, with a decreasing number of arguments, then non-public constructors, again with a decreasing number of arguments.

See Also

AutowireUtils Class | Spring.Objects.Factory.Support Namespace