Unosquare
    Show / Hide Table of Contents

    Interface IValidator

    A simple Validator interface.

    Namespace: Swan.Validators
    Syntax
    public interface IValidator

    Properties

    ErrorMessage

    The error message.

    Declaration
    string ErrorMessage { get; }
    Property Value
    Type Description
    String

    Methods

    IsValid<T>(T)

    Checks if a value is valid.

    Declaration
    bool IsValid<T>(T value)
    Parameters
    Type Name Description
    T value

    The value.

    Returns
    Type Description
    Boolean

    True if it is valid.False if it is not.

    Type Parameters
    Name Description
    T

    The type.

    Comments

    Back to top Copyright © 2017-2019 Unosquare