Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

CollectionUtils.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 _
public static bool HasElements(
   ICollection collection


the collection to be checked.

Return Value

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

See Also

CollectionUtils Class | Spring.Util Namespace