Search Results for

    Show / Hide Table of Contents

    Class ValidatorCollection

    Defines a list of IValidator objects that can be accessed by index.

    Inheritance
    System.Object
    ValidatorCollection
    Implements
    IValidatorCollection
    IList
    Namespace: MADE.Data.Validation
    Assembly: MADE.Data.Validation.dll
    Syntax
    public class ValidatorCollection : List<IValidator>, IValidatorCollection

    Constructors

    | Improve this Doc View Source

    ValidatorCollection()

    Initializes a new instance of the ValidatorCollection class that is empty and has the default initial capacity.

    Declaration
    public ValidatorCollection()
    | Improve this Doc View Source

    ValidatorCollection(IEnumerable<IValidator>)

    Initializes a new instance of the ValidatorCollection class that contains elements copied from the specified collection and has sufficient capacity to accommodate the number of elements copied.

    Declaration
    public ValidatorCollection(IEnumerable<IValidator> collection)
    Parameters
    Type Name Description
    IEnumerable<IValidator> collection

    The collection whose elements are copied to the new list.

    Exceptions
    Type Condition
    System.ArgumentNullException

    collection is null.

    | Improve this Doc View Source

    ValidatorCollection(Int32)

    Initializes a new instance of the ValidatorCollection class that is empty and has the specified initial capacity.

    Declaration
    public ValidatorCollection(int capacity)
    Parameters
    Type Name Description
    System.Int32 capacity

    The number of elements that the new list can initially store.

    Exceptions
    Type Condition
    System.ArgumentOutOfRangeException

    capacity is less than 0.

    Properties

    | Improve this Doc View Source

    FeedbackMessages

    Gets the validator feedback messages for ones which are invalid.

    Declaration
    public IEnumerable<string> FeedbackMessages { get; }
    Property Value
    Type Description
    IEnumerable<System.String>
    | Improve this Doc View Source

    IsDirty

    Gets or sets a value indicating whether the data is dirty.

    Declaration
    public bool IsDirty { get; set; }
    Property Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    IsInvalid

    Gets or sets a value indicating whether the data provided is in an invalid state.

    Declaration
    public bool IsInvalid { get; set; }
    Property Value
    Type Description
    System.Boolean

    Methods

    | Improve this Doc View Source

    Validate(Object)

    Executes data validation on the provided value against the validators provided.

    Declaration
    public void Validate(object value)
    Parameters
    Type Name Description
    System.Object value

    The value to be validated.

    Events

    | Improve this Doc View Source

    Validated

    Occurs when the input value is validated against the collection of validators.

    Declaration
    public event InputValidatedEventHandler Validated
    Event Type
    Type Description
    InputValidatedEventHandler

    Implements

    IValidatorCollection
    IList

    Extension Methods

    ReflectionExtensions.GetPropertyValue<T>(Object, String)
    ReflectionExtensions.GetPropertyNames(Object)
    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright (c) MADE Apps