Merge pull request #485 from mtausig/master
[mono.git] / mcs / class / System.Web.Mvc3 / Mvc / DataAnnotationsModelValidator`1.cs
1 namespace System.Web.Mvc {
2     using System.ComponentModel.DataAnnotations;
3
4     public class DataAnnotationsModelValidator<TAttribute> : DataAnnotationsModelValidator where TAttribute : ValidationAttribute {
5         public DataAnnotationsModelValidator(ModelMetadata metadata, ControllerContext context, TAttribute attribute)
6             : base(metadata, context, attribute) { }
7
8         protected new TAttribute Attribute {
9             get {
10                 return (TAttribute)base.Attribute;
11             }
12         }
13     }
14 }