コード例 #1
0
 internal static Param <string> DoesNotContainWhitespace(this Param <string> param)
 {
     if (!Ensure.IsActive)
     {
         return(param);
     }
     if (param.Value != null && param.Value.Contains(" "))
     {
         throw ExceptionFactory.CreateForParamNullValidation(param, "Value cannot contain whitespace");
     }
     return(param);
 }