Navigation :
IValidatorProvider
Name |
Value |
Assembly |
Catel.Core |
Namespace |
Catel.Data |
Available on |
.NET Framework 4.5, .NET Framework 4.6, Portable Class Libraries, Xamarin - Android, Xamarin - iOS |
public interface IValidatorProvider
Provider of IValidator classes. This provider can be used to retrieve specific validators for specific types.
Methods
GetValidator(Type targetType)
Gets a validator for the specified target type.
Parameters
Name |
Description |
targetType |
The target type. |
Returns
The IValidator for the specified type ornull
if no validator is available for the specified type.
Exceptions
Name |
Description |
ArgumentNullException |
The targetType isnull . |
GetValidator<TTargetType>()
Gets a validator for the specified target type.
Type Parameters
TTargetType
The target type.
Returns
The IValidator for the specified type ornull
if no validator is available for the specified type.
Have a question about Catel? Use StackOverflow with the Catel tag!
Discussion