Show / Hide Table of Contents

Class ValidationSourceExtensions

Extensions for all elements implementing IValidationEntry<T> that provide helper methods to configure validation rules.

Inheritance
object
ValidationSourceExtensions
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: TheXDS.MCART.Types.Extensions
Assembly: MCART.Mvvm.dll
Syntax
public static class ValidationSourceExtensions

Methods

| Edit this page View Source

NotEmpty(IValidationEntry<string?>, string)

Registers a validation rule that requires the string to be neither null nor Empty.

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 rule, enabling fluent syntax.

  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX