C# 클래스 SemanticLogging.EventHub.Utility.Guard

파일 보기 프로젝트 열기: DeHeerSoftware/SemanticLogging.EventHub

공개 메소드들

메소드 설명
ArgumentNotNull ( object argumentValue, string argumentName ) : void

Throws ArgumentNullException if the given argument is null.

ArgumentNotNullOrEmpty ( string argumentValue, string argumentName ) : void

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

메소드 상세

ArgumentNotNull() 공개 정적인 메소드

Throws ArgumentNullException if the given argument is null.
If tested value if null.
public static ArgumentNotNull ( object argumentValue, string argumentName ) : void
argumentValue object Argument value to test.
argumentName string Name of the argument being tested.
리턴 void

ArgumentNotNullOrEmpty() 공개 정적인 메소드

Throws an exception if the tested string argument is null or the empty string.
Thrown if string value is null. Thrown if the string is empty
public static ArgumentNotNullOrEmpty ( string argumentValue, string argumentName ) : void
argumentValue string Argument value to check.
argumentName string Name of argument being checked.
리턴 void