The RuleStringComparison attribute demands that a particular string property satisfies a specific expression. Here, this rule is illustrated using the following five operators:
- StartsWith (the StartsWithAbc property);
- EndsWith (the EndsWithXyz property);
- Contains (the ContainsXXX property);
- Equals (the EqualsValid property);
- NotEquals (the DoesNotEqualInvalid property).
To check this rule, save the current object.