Click or drag to resize

ErrorFactoryT Class

Class that provides functionality to resolve a ValidationResult to an user defined error object by constructing objects of type T.
Inheritance Hierarchy
SystemObject
  Xploration.ValidationErrorProvider
    Xploration.ValidationErrorFactoryT

Namespace:  Xploration.Validation
Assembly:  Xploration.Validation (in Xploration.Validation.dll) Version: 1.0.0-alpha1
Syntax
public class ErrorFactory<T> : ErrorProvider
where T : class

Type Parameters

T
The error object to construct.

Important note Important
The class of type T must support a constructor with a single parameter of type ValidationResult.

The ErrorFactoryT type exposes the following members.

Constructors
  NameDescription
Public methodErrorFactoryT
Initializes a new instance of the ErrorFactoryT class that creates error objects for a validator.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetError
Resolves the given ValidationResult to an user defined error object.
(Inherited from ErrorProvider.)
Protected methodGetErrorObject
Resolves the given validation result to an user defined error object.
(Overrides ErrorProviderGetErrorObject(ValidationResult).)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also