C# Class SemanticLogging.EventHub.Utility.Guard

Afficher le fichier Open project: DeHeerSoftware/SemanticLogging.EventHub

Méthodes publiques

Méthode Description
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.

Method Details

ArgumentNotNull() public static méthode

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

ArgumentNotNullOrEmpty() public static méthode

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