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