C# Class StructureMap.ArgumentChecker

Afficher le fichier Open project: structuremap/structuremap

Méthodes publiques

Méthode Description
ThrowIfNull ( string argumentName, object value ) : void

Utility method to throw ArgumentNullException if the argument is .

ThrowIfNullOrEmptyString ( string argumentName, string value ) : void

Utility method to throw ArgumentNullException if the argument is or ArgumentException if the argument is an empty string.

Method Details

ThrowIfNull() public static méthode

Utility method to throw ArgumentNullException if the argument is .
If is .
public static ThrowIfNull ( string argumentName, object value ) : void
argumentName string The argument name.
value object The argument value.
Résultat void

ThrowIfNullOrEmptyString() public static méthode

Utility method to throw ArgumentNullException if the argument is or ArgumentException if the argument is an empty string.
If is . If is an empty string.
public static ThrowIfNullOrEmptyString ( string argumentName, string value ) : void
argumentName string The argument name.
value string The argument value.
Résultat void