SettingsUnitHelperThrowIfNotNullablePattern - метод

Throws an exception if the specified value is not null and does not match the required regex pattern.

Definition

Пространство имён: Tessa.SettingsUnits
Сборка: Tessa (в Tessa.dll) Версия: 4.2.2+a8f0dd3c063817b2e3f05a923303d808e447c338
C#
public static void ThrowIfNotNullablePattern(
	string? value,
	Regex pattern
)

Параметры

value  String
The string value to validate (can be null).
pattern  Regex
The regular expression to match against.

Исключения

ArgumentExceptionThrown when the value does not match the specified regex pattern.
ArgumentNullExceptionThrown when pattern is null.

См. также