2002-07-22 Tim Coleman <tim@timcoleman.com>
[mono.git] / mcs / class / System / System.ComponentModel / BindableAttribute.cs
1 //
2 // System.ComponentModel.BindableAttribute.cs
3 //
4 // Author:
5 //   Tim Coleman (tim@timcoleman.com)
6 //
7 // Copyright (C) Tim Coleman, 2002
8 //
9 //
10
11 namespace System.ComponentModel {
12         [AttributeUsage (AttributeTargets.All)]
13         public sealed class BindableAttribute : Attribute {
14
15                 #region Fields
16
17                 BindableSupport flags;
18                 bool bindable;
19
20                 #endregion // Fields
21                 
22                 public static readonly BindableAttribute No = new BindableAttribute (BindableSupport.No);
23                 public static readonly BindableAttribute Yes = new BindableAttribute (BindableSupport.Yes);
24                 public static readonly BindableAttribute Default = new BindableAttribute (BindableSupport.Default);
25
26                 #region Constructors
27
28                 public BindableAttribute (BindableSupport flags)
29                 {
30                         this.flags = flags;
31                         this.bindable = false;
32                 }
33
34                 public BindableAttribute (bool bindable)
35                 {
36                         this.bindable = bindable;
37                 }
38
39                 #endregion // Constructors
40
41                 #region Properties
42
43                 public bool Bindable {
44                         get { return bindable; }
45                 }
46
47                 #endregion // Properties
48
49                 #region Methods
50
51                 [MonoTODO]
52                 public override bool Equals (object obj)
53                 {
54                         throw new NotImplementedException ();
55                 }
56
57                 [MonoTODO]
58                 public override int GetHashCode ()
59                 {
60                         throw new NotImplementedException ();
61                 }
62
63                 [MonoTODO]
64                 public override bool IsDefaultAttribute ()
65                 {
66                         throw new NotImplementedException ();
67                 }
68
69                 #endregion // Methods
70         }
71 }