Click or drag to resize

NotNullOrEmptyValidatorIsValidAsync Method (StateTransition, String, String)

Validates that the new string is not null or empty.

Namespace:  Xploration.Validation
Assembly:  Xploration.Validation (in Xploration.Validation.dll) Version: 1.0.0-alpha1
Syntax
protected override Task<bool> IsValidAsync(
	StateTransition transition,
	string oldValue,
	string newValue
)

Parameters

transition
Type: Xploration.ValidationStateTransition
The transition between the old and new string.
oldValue
Type: SystemString
The previous string.
newValue
Type: SystemString
The current string.

Return Value

Type: TaskBoolean
Returns true if the new string is not null or empty; otherwise false.
See Also