Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

AssertUtils.ArgumentHasElements Method

Checks the value of the supplied ICollectionargument and throws an ArgumentException if it is a null reference (Nothing in Visual Basic), contains no elements or only null elements.

[Visual Basic]
Public Shared Sub ArgumentHasElements( _
   ByVal argument As ICollection, _
   ByVal name As String _
)
[C#]
public static void ArgumentHasElements(
   ICollection argument,
   string name
);

Parameters

argument
The array or collection to check.
name
The argument name.

Exceptions

Exception Type Condition
ArgumentNullException If the supplied argument is a null reference (Nothing in Visual Basic), contains no elements or only null elements.

See Also

AssertUtils Class | Spring.Util Namespace