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 |
public static void StringRequiredAndNotWhitespace(string parameter, string parameterName)
{
ParameterNameRequired(parameterName);
Require(!string.IsNullOrWhiteSpace(parameter), string.Format("The string parameter {0} must not be null, empty or contain only whitespace", parameterName));
}