Class ConfigKeyValidator
- Namespace
- MonkeyLoader.Configuration
- Assembly
- MonkeyLoader.dll
Contains some IConfigKeyValidator<T> presets.
public static class ConfigKeyValidator
- Inheritance
-
ConfigKeyValidator
- Inherited Members
Properties
NotNullOrWhitespace
Gets a validator component that only accepts non-null non-whitespace strings.
public static IConfigKeyValidator<string> NotNullOrWhitespace { get; }
Property Value
Methods
Matching(Regex)
Creates a new validator component that only accepts strings,
where the given regex
has a match.
public static IConfigKeyValidator<string> Matching(Regex regex)
Parameters
regex
RegexThe regular expression that must have a match.
Returns
- IConfigKeyValidator<string>
The validator component.