Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/aspnetwebstack.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/System.Web.Mvc/DataAnnotationsModelValidator`1.cs')
-rw-r--r--src/System.Web.Mvc/DataAnnotationsModelValidator`1.cs18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/System.Web.Mvc/DataAnnotationsModelValidator`1.cs b/src/System.Web.Mvc/DataAnnotationsModelValidator`1.cs
new file mode 100644
index 00000000..19a55969
--- /dev/null
+++ b/src/System.Web.Mvc/DataAnnotationsModelValidator`1.cs
@@ -0,0 +1,18 @@
+using System.ComponentModel.DataAnnotations;
+
+namespace System.Web.Mvc
+{
+ public class DataAnnotationsModelValidator<TAttribute> : DataAnnotationsModelValidator
+ where TAttribute : ValidationAttribute
+ {
+ public DataAnnotationsModelValidator(ModelMetadata metadata, ControllerContext context, TAttribute attribute)
+ : base(metadata, context, attribute)
+ {
+ }
+
+ protected new TAttribute Attribute
+ {
+ get { return (TAttribute)base.Attribute; }
+ }
+ }
+}