Open sandboxFocus

Method When

When<TOutput>()

Gets an IEligibilityBuilder for another type, but only adds the rule when the validated object is of the given type. If the validated object is not of the specified type, the child eligibility rule is ignored. Uses If<T>(IEligibilityBuilder<T>, Predicate<T>).

Declaration
public IEligibilityBuilder<TOutput> When<TOutput>() where TOutput : class, T
Returns
Type Description
IEligibilityBuilder<TOutput>
Type Parameters
Name Description
TOutput