NameFilter
Last updated
Last updated
Validates names produced by a name generator against a set of configurable constraints.
Implements:
NameFilter()
Instantiates a new with no constraints.
Add(System.String[] patterns)
Adds new patterns to this filter.
Add( constraint)
Adds a new constraint to this filter.
IsValid( name)
System.Boolean
Returns true if the specified name does not match any of this filter's contraints, else returns false.
IsValid(System.String name)
System.Boolean
Returns true if the specified name does not match any of this filter's contraints, else returns false.
Constraints
System.Collections.Generic.List <>
The list of constraints that names must pass to be considered valid.