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