FluentValidation by Jeremy Skinner

<PackageReference Include="FluentValidation" Version="10.3.4" />

 IValidationRule

public interface IValidationRule
Defines a rule associated with a property which can have multiple validators.

The components in this rule.

Dependent rules.

Expression that was used to create the rule.

bool HasAsyncCondition { get; }

Whether the rule has an async condition defined.

bool HasCondition { get; }

Whether the rule has a condition defined.

MemberInfo Member { get; }

Property associated with this rule.

string PropertyName { get; set; }

Returns the property name for the property being validated. Returns null if it is not a property being validated (eg a method call)

string[] RuleSets { get; set; }

Name of the rule-set to which this rule belongs.

Type of the property being validated

Gets the display name for the property.