Method ValidChars
ValidChars(params char[])
Sets the specifieds characters as valid for the input.
public ICharValidator ValidChars(params char[] ch)
Parameters
chchar[]Characters to change state for.
Returns
- ICharValidator
Returns this object instance for use in the call sequences.
ValidChars(char[], bool)
Sets the specifieds characters as valid or invalid for the input.
public ICharValidator ValidChars(char[] ch, bool valid)
Parameters
chchar[]Characters to change state for.
validboolWhether chars are valid or invalid for the input.
Returns
- ICharValidator
Returns this object instance for use in the call sequences.
ValidChars(string[], bool)
Sets all string characters as valid or invalid for the input.
public ICharValidator ValidChars(string[] s, bool valid = true)
Parameters
sstring[]Lists characters to change state for.
validboolWhether chars are valid or invalid for the input.
Returns
- ICharValidator
Returns this object instance for use in the call sequences.
ValidChars(string?, bool)
Sets all string characters as valid or invalid for the input.
public ICharValidator ValidChars(string? s, bool valid = true)
Parameters
sstringLists characters to change state for.
validboolWhether chars are valid or invalid for the input.
Returns
- ICharValidator
Returns this object instance for use in the call sequences.