Method | Description | |
---|---|---|
ParameterRequired ( object parameter, string parameterName ) : void |
Throws a Precondition exception if the provided object is null
|
|
StringRequiredAndNotWhitespace ( string parameter, string parameterName ) : void |
Throw a Precondition exception if the provided string is null, empty or contains only whitespace.
|
Method | Description | |
---|---|---|
GetParameterRequiredErrorMessage ( string parameterName ) : string | ||
ParameterNameRequired ( string parameterName ) : void | ||
Require ( bool assertion, string message ) : void |
public static ParameterRequired ( object parameter, string parameterName ) : void | ||
parameter | object | The object to test. |
parameterName | string | The name of the parameter. |
return | void |
public static StringRequiredAndNotWhitespace ( string parameter, string parameterName ) : void | ||
parameter | string | Teh string parameter to check. |
parameterName | string | The name of the string parameter (used in error messages). |
return | void |