Moving BSTR conv to native code in SecureStringToBSTR.
[mono.git] / mcs / class / referencesource / System.Web / ModelBinding / StringLengthAttributeAdapter.cs
1 namespace System.Web.ModelBinding {
2     using System.ComponentModel.DataAnnotations;
3
4     public sealed class StringLengthAttributeAdapter : DataAnnotationsModelValidator<StringLengthAttribute> {
5         public StringLengthAttributeAdapter(ModelMetadata metadata, ModelBindingExecutionContext context, StringLengthAttribute attribute)
6             : base(metadata, context, attribute) {
7         }
8
9 #if UNDEF
10         public override IEnumerable<ModelClientValidationRule> GetClientValidationRules() {
11             return new[] { new ModelClientValidationStringLengthRule(ErrorMessage, Attribute.MinimumLength, Attribute.MaximumLength) };
12         }
13 #endif
14     }
15 }