Click or drag to resize

GuardArgumentIsNotNullOrEmptyT Method (IEnumerableT, String, String)

Throws an exception if the tested collection is or contains no elements.

Namespace:  Enkoni.Framework
Assembly:  Enkoni.Framework (in Enkoni.Framework.dll) Version: 1.3.0.1
Syntax
public static void ArgumentIsNotNullOrEmpty<T>(
	IEnumerable<T> argumentValue,
	string argumentName,
	string message
)

Parameters

argumentValue
Type: System.Collections.GenericIEnumerableT
Argument value to check.
argumentName
Type: SystemString
Name of argument being checked.
message
Type: SystemString
The message that will be passed to the exception.

Type Parameters

T
The type of elements in the collection.
Exceptions
ExceptionCondition
ArgumentNullExceptionThrown if argumentValue is .
ArgumentExceptionThrown if the string is empty.
See Also