Click or drag to resize

GuardArgumentIsNotNullOrEmpty Method (String, String, String)

Throws an exception if the tested string argument is or the empty string.

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

Parameters

argumentValue
Type: SystemString
Argument value to check.
argumentName
Type: SystemString
Name of argument being checked.
message
Type: SystemString
The message that will be passed to the exception.
Exceptions
ExceptionCondition
ArgumentNullExceptionThrown if argumentValue is .
ArgumentExceptionThrown if the string is empty.
See Also