Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

ArrayUtils.HasElements Method

Checks if the given array or collection has elements and none of the elements is null.

[Visual Basic]
Public Shared Sub HasElements( _
   ByVal collection As ICollection _
)
[C#]
public static bool HasElements(
   ICollection collection
);

Parameters

collection
the collection to be checked.

Return Value

true if the collection has a length and contains only non-null elements.

See Also

ArrayUtils Class | Spring.Util Namespace