Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

CollectionUtils.ToArray Method

Copies the elements of the ICollection to a new array of the specified element type.

[Visual Basic]
Public Shared Sub ToArray( _
   ByVal inputCollection As ICollection, _
   ByVal elementType As Type _
public static Array ToArray(
   ICollection inputCollection,
   Type elementType


The ICollection instance to be converted.
The element Type of the destination array to create and copy elements to

Return Value

An array of the specified element type containing copies of the elements of the ICollection.

See Also

CollectionUtils Class | Spring.Util Namespace