C# Class Tailspin.Surveys.Common.Guard

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

Méthodes publiques

Méthode 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 méthode

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.
Résultat void

ArgumentNotNullOrWhiteSpace() public static méthode

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.
Résultat void