Class ValidationSourceExtensions
Extensions for all elements implementing IValidationEntry<T> that provide helper methods to configure validation rules.
Inherited Members
Namespace: TheXDS.MCART.Types.Extensions
Assembly: MCART.Mvvm.dll
Syntax
public static class ValidationSourceExtensions
Methods
| Edit this page View SourceNotEmpty(IValidationEntry<string?>, string)
Declaration
public static IValidationEntry<string> NotEmpty(this IValidationEntry<string?> rule, string error)
Parameters
| Type | Name | Description |
|---|---|---|
| IValidationEntry<string> | rule | Validation entry instance. |
| string | error | Error message to show when the string fails this validation rule. |
Returns
| Type | Description |
|---|---|
| IValidationEntry<string> | The same instance as |