OnlyOneExistsRule constructor

OnlyOneExistsRule(
  1. List<String> properties
)

Creates a new validation rule and sets its values

  • properties a list of property names where at only one property must exist

Implementation

OnlyOneExistsRule(List<String> properties) : _properties = properties;