Unosquare
    Show / Hide Table of Contents

    Class NotNullAttribute

    A not null validator.

    Inheritance
    Object
    NotNullAttribute
    Implements
    IValidator
    Namespace: Swan.Validators
    Syntax
    public class NotNullAttribute : Attribute, IValidator

    Properties

    ErrorMessage

    The error message.

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

    Methods

    IsValid<T>(T)

    Checks if a value is valid.

    Declaration
    public 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.

    Implements

    IValidator

    Comments

    Back to top Copyright © 2017-2019 Unosquare