public AnyOfSourceTcpPortNumbersPredicate(Property property, ShortList <string> valueEntries, RulesCreationContext creationContext) : base(property, valueEntries, creationContext) { if (!base.Property.IsString && !typeof(IntRange).IsAssignableFrom(base.Property.Type)) { throw new RulesValidationException(RulesTasksStrings.ClientAccessRulesPortRangePropertyRequired(this.Name)); } }