public static IPropertyRuleBuilder<T, TProperty> IsNotNullOrWhiteSpace<T, TProperty>( this IPropertyRuleBuilder<T, TProperty> ruleBuilder) where T : class { return ruleBuilder.IsFalse(property => string.IsNullOrWhiteSpace(property?.ToString())); }
public static IPropertyRuleBuilder<T, TProperty> IsNotNullOrWhiteSpace<T, TProperty>( this IPropertyRuleBuilder<T, TProperty> ruleBuilder) where T : class { return ruleBuilder.IsFalse(property => string.IsNullOrWhiteSpace(property?.ToString())); }