C# 클래스 Tailspin.Surveys.Common.Guard

A static helper class that includes various parameter checking routines.
파일 보기 프로젝트 열기: Azure-Samples/guidance-identity-management-for-multitenant-apps

공개 메소드들

메소드 설명
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