Click or drag to resize

ClassValidatorTClass Class

Defines a validator for objects of type T.
Inheritance Hierarchy
SystemObject
  Xploration.ValidationClassValidator
    Xploration.ValidationClassValidatorTClass

Namespace:  Xploration.Validation
Assembly:  Xploration.Validation (in Xploration.Validation.dll) Version: 1.0.0-alpha1
Syntax
public class ClassValidator<TClass> : ClassValidator, 
	IValidator<TClass>, IValidator
where TClass : class

Type Parameters

TClass
The type of the class to validate.

The ClassValidatorTClass type exposes the following members.

Constructors
  NameDescription
Public methodClassValidatorTClass
Initializes a new instance of the ClassValidatorTClass class
Top
Properties
  NameDescription
Public propertyErrorProvider
Gets or sets the error provider.
Public propertyProperties
Gets the properties to inspect.
Public propertyValidators
Gets the registerd property validators.
Top
Methods
  NameDescription
Protected methodCheckTProperty
Begins a fluent API statement for validating a property.
Protected methodCheckCollection
Begins a fluent API statement for validating a property which value is a collection.
Protected methodCheckElementsTElement
Begins a fluent API statement for validating the elements of a property.
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 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 methodRegisterValidator(PropertyValidatorTClass)
Registers and returns the given PropertyValidator.
Public methodRegisterValidator(PropertyInfo, IValidator)
Registers and returns a new PropertyValidator.
Public methodToString
Returns a string that represents the current object.
(Overrides ObjectToString.)
Public methodValidateAsync(TClass)
Validates the given object asynchronously and determines if the object is valid.
Public methodValidateAsync(ValidationContextTClass)
Validates the given ValidationContext asynchronously and determines if the context is valid.
Public methodValidateAsync(TClass, TClass)
Validates the given new object against the old object asynchronously and determines if the new object is valid.
Public methodValidateAsync(ValidationContextTClass, PropertyInfo)
Validates the given context asynchronously with properties that should have the replaced state.
Public methodValidateAsync(ValidationContextTClass, PropertyContextTClass)
Validates the given context asynchronously, overriding property context creation with the given property context(s).
Top
Extension Methods
  NameDescription
Public Extension MethodCheckTClass, TProperty
Begins a fluent API statement for validating a property of a class.
(Defined by FluentAPIExtensions.)
Public Extension MethodCheckCollectionTClass(ExpressionFuncTClass, IEnumerable)Overloaded.
Begins a fluent API statement for validating a property which value is a collection.
(Defined by FluentAPIExtensions.)
Public Extension MethodCheckCollectionTClass, T(ExpressionFuncTClass, IEnumerableT)Overloaded.
Begins a fluent API statement for validating a property which value is a collection.
(Defined by FluentAPIExtensions.)
Public Extension MethodCheckElementsTClass, TElement
Begins a fluent API statement for validating the elements in a collection of a property.
(Defined by FluentAPIExtensions.)
Public Extension MethodExecuteAsync(Object)Overloaded.
Validates the given value asynchronously and returns the validation results.
(Defined by IValidatorExtensions.)
Public Extension MethodExecuteAsync(ValidationContext)Overloaded.
Validates the given context asynchronously and returns the validation results.
(Defined by IValidatorExtensions.)
Public Extension MethodExecuteAsync(Object, Object)Overloaded.
Validates the given new value against the old value asynchronously and returns the validation results.
(Defined by IValidatorExtensions.)
Public Extension MethodExecuteAsyncTClass(TClass)Overloaded.
Validates the given value asynchronously and returns the validation results.
(Defined by IValidatorExtensions.)
Public Extension MethodExecuteAsyncTClass(ValidationContextTClass)Overloaded.
Validates the given context asynchronously and returns the validation results.
(Defined by IValidatorExtensions.)
Public Extension MethodExecuteAsyncTClass(TClass, TClass)Overloaded.
Validates the given new value against the old value asynchronously and returns the validation results.
(Defined by IValidatorExtensions.)
Public Extension MethodGetConcreteValidator
Returns the concrete validator of the current validator if the current validator is an IDelegatedValidator.
(Defined by IValidatorExtensions.)
Top
See Also