Exemple #1
0
 void CustomizeValidationStrategy(
     ValidationStrategy <TArgument> strategy)
 {
     if (_ruleSets?.Any() == true)
     {
         strategy.IncludeRuleSets(_ruleSets);
     }
     else if (_properties?.Any() == true)
     {
         strategy.IncludeProperties(_properties);
     }
 }