C# Class StructureMap.ArgumentChecker

显示文件 Open project: structuremap/structuremap

Public Methods

Method 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 method

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.
return void

ThrowIfNullOrEmptyString() public static method

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.
return void