C# Class Habanero.Smooth.Guard

Performs common argument validation.
Mostrar archivo Open project: Chillisoft/habanero.smooth

Public Methods

Method Description
AgainstEmptyString ( string argumentValue, string argumentName ) : void

Checks a string argument to ensure it isn't empty.

AgainstNull ( object argumentValue, string argumentName ) : void

Checks an argument to ensure it isn't null.

AgainstNullOrEmptyString ( string argumentValue, string argumentName ) : void

Checks a string argument to ensure it isn't null or empty.

Method Details

AgainstEmptyString() public static method

Checks a string argument to ensure it isn't empty.
is .
public static AgainstEmptyString ( string argumentValue, string argumentName ) : void
argumentValue string The argument value to check.
argumentName string The name of the argument.
return void

AgainstNull() public static method

Checks an argument to ensure it isn't null.
is a null reference.
public static AgainstNull ( object argumentValue, string argumentName ) : void
argumentValue object The argument value to check.
argumentName string The name of the argument.
return void

AgainstNullOrEmptyString() public static method

Checks a string argument to ensure it isn't null or empty.
is a null reference. is .
public static AgainstNullOrEmptyString ( string argumentValue, string argumentName ) : void
argumentValue string The argument value to check.
argumentName string The name of the argument.
return void