20 lines
558 B
C#
20 lines
558 B
C#
namespace System.Web.ModelBinding {
|
|
public static class ModelValidatorProviders {
|
|
|
|
private static readonly ModelValidatorProviderCollection _providers = new ModelValidatorProviderCollection() {
|
|
new DataAnnotationsModelValidatorProvider(),
|
|
#if UNDEF
|
|
new DataErrorInfoModelValidatorProvider(),
|
|
new ClientDataTypeModelValidatorProvider()
|
|
#endif
|
|
};
|
|
|
|
public static ModelValidatorProviderCollection Providers {
|
|
get {
|
|
return _providers;
|
|
}
|
|
}
|
|
|
|
}
|
|
}
|