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
Syntaxpublic static void ArgumentIsNotNullOrEmpty<T>(
IEnumerable<T> argumentValue,
string argumentName,
string message
)
Public Shared Sub ArgumentIsNotNullOrEmpty(Of T) (
argumentValue As IEnumerable(Of T),
argumentName As String,
message As String
)
public:
generic<typename T>
static void ArgumentIsNotNullOrEmpty(
IEnumerable<T>^ argumentValue,
String^ argumentName,
String^ message
)
static member ArgumentIsNotNullOrEmpty :
argumentValue : IEnumerable<'T> *
argumentName : string *
message : string -> unit
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
See Also