C# Class Tailspin.Surveys.Common.Guard

A static helper class that includes various parameter checking routines.
Exibir arquivo Open project: Azure-Samples/guidance-identity-management-for-multitenant-apps

Public Methods

Method Description
ArgumentNotNull ( object argumentValue, string argumentName ) : void

Throws ArgumentNullException if the given argument is null.

ArgumentNotNullOrWhiteSpace ( string argumentValue, string argumentName ) : void

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

Method Details

ArgumentNotNull() public static method

Throws ArgumentNullException if the given argument is null.
The value is null.
public static ArgumentNotNull ( object argumentValue, string argumentName ) : void
argumentValue object The argument value to test.
argumentName string The name of the argument to test.
return void

ArgumentNotNullOrWhiteSpace() public static method

Throws an exception if the tested string argument is null or an empty string.
The string value is null. The string is empty.
public static ArgumentNotNullOrWhiteSpace ( string argumentValue, string argumentName ) : void
argumentValue string The argument value to test.
argumentName string The name of the argument to test.
return void