Table of Contents

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

IConfigKeyValidator<string>

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 Regex

The regular expression that must have a match.

Returns

IConfigKeyValidator<string>

The validator component.