public static ExpressValidationRuleBuilder <T> Null <T>(this ExpressValidationBuilder <T> builder) { return (builder .True(CreateEqualNullExpression <T>()) .WithMessage($"{typeof(T).ToPrettyString()} must be null.") .BreakOnFailure()); }
public static ExpressValidationRuleBuilder <T> False <T>(this ExpressValidationBuilder <T> builder, Expression <Func <T, bool> > expression) { return(builder.True(Negate(expression))); }