2009-07-11 Michael Barker <mike@middlesoft.co.uk>
[mono.git] / mcs / class / System.Web.DynamicData / Test / ModelProviders / DynamicDataStringLengthAttribute.cs
1 using System;
2 using System.Collections.Generic;
3 using System.Linq;
4 using System.Text;
5 using System.Web.DynamicData.ModelProviders;
6
7 namespace MonoTests.ModelProviders
8 {
9         [AttributeUsage (AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = false)]
10         class DynamicDataStringLengthAttribute : Attribute
11         {
12                 public int MaxLength { get; private set; }
13
14                 public DynamicDataStringLengthAttribute (int maxLength)
15                 {
16                         MaxLength = maxLength;
17                 }
18         }
19 }