Open sandboxFocus

Method If

If<T>(IEligibilityBuilder<T>, Predicate<T>)

Adds a rule to the given IEligibilityBuilder, but only if the validate object satisfies a given predicate. Otherwise, the rule is ignored.

Declaration
public static IEligibilityBuilder<T> If<T>(this IEligibilityBuilder<T> eligibilityBuilder, Predicate<T> condition) where T : class
Parameters
Type Name Description
IEligibilityBuilder<T> eligibilityBuilder
Predicate<T> condition
Returns
Type Description
IEligibilityBuilder<T>
Type Parameters
Name Description
T