* PagedDataSource.cs (PrivateICollectionEnumerator.MoveNext):
[mono.git] / mcs / class / System.Web / System.Web.UI.WebControls / VerticalAlignConverter.cs
1 //
2 // System.Web.UI.WebControls.VerticalAlignConverter
3 //
4 // Authors:
5 //      Gonzalo Paniagua Javier (gonzalo@ximian.com)
6 //
7 // (C) 2002 Ximian, Inc (http://www.ximian.com)
8 //
9
10 using System.ComponentModel;
11 using System.Globalization;
12
13 namespace System.Web.UI.WebControls
14 {
15         class VerticalAlignConverter : EnumConverter
16         {
17                 public VerticalAlignConverter () : base (typeof(VerticalAlign))
18                 {
19                 }
20
21                 // The base class is enough to handle everything.
22                 // The methods are here just to make the class status page happy.
23                 // Add some optimizations?
24
25                 public override bool CanConvertFrom (ITypeDescriptorContext context, Type sourceType)
26                 {
27                         return base.CanConvertFrom (context, sourceType);
28                 }
29
30                 public override object ConvertFrom (ITypeDescriptorContext context,
31                                                     CultureInfo culture,
32                                                     object value)
33                 {
34                         return base.ConvertFrom (context, culture, value);
35                 }
36
37                 public override bool CanConvertTo (ITypeDescriptorContext context, Type destinationType)
38                 {
39                         return base.CanConvertTo (context, destinationType);
40                 }
41
42                 public override object ConvertTo (ITypeDescriptorContext context,
43                                                   CultureInfo culture,
44                                                   object value,
45                                                   Type destinationType)
46                 {
47                         return base.ConvertTo (context, culture, value, destinationType);
48                 }
49         }
50 }
51