Ejemplo n.º 1
0
 public static void ThrowExceptionWhenIsNullOrWhiteSpace(Expression <Func <object> > paramExpression)
 {
     Validators.EnsureValidParamExpression(paramExpression);
     Validators.ThrowExceptionWhenIsNullOrWhiteSpace(Validators.GetParamName(paramExpression), Validators.GetParamValue(paramExpression) as string);
 }
Ejemplo n.º 2
0
 public static void ThrowExceptionWhenIsNegativeOrZero(Expression <Func <object> > paramExpression)
 {
     Validators.EnsureValidParamExpression(paramExpression);
     Validators.ThrowExceptionWhenIsNegativeOrZero(Validators.GetParamName(paramExpression), (int)Validators.GetParamValue(paramExpression));
 }