C# Класс Tailspin.Surveys.Common.Guard

A static helper class that includes various parameter checking routines.
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

ArgumentNotNull() публичный статический Метод

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.
Результат void

ArgumentNotNullOrWhiteSpace() публичный статический Метод

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.
Результат void