BindableAttribute.cs 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. //
  2. // System.ComponentModel.BindableAttribute.cs
  3. //
  4. // Author:
  5. // Tim Coleman ([email protected])
  6. //
  7. // Copyright (C) Tim Coleman, 2002
  8. //
  9. //
  10. namespace System.ComponentModel {
  11. [AttributeUsage (AttributeTargets.All)]
  12. public sealed class BindableAttribute : Attribute {
  13. #region Fields
  14. BindableSupport flags;
  15. bool bindable;
  16. #endregion // Fields
  17. public static readonly BindableAttribute No = new BindableAttribute (BindableSupport.No);
  18. public static readonly BindableAttribute Yes = new BindableAttribute (BindableSupport.Yes);
  19. public static readonly BindableAttribute Default = new BindableAttribute (BindableSupport.Default);
  20. #region Constructors
  21. public BindableAttribute (BindableSupport flags)
  22. {
  23. this.flags = flags;
  24. this.bindable = false;
  25. }
  26. public BindableAttribute (bool bindable)
  27. {
  28. this.bindable = bindable;
  29. }
  30. #endregion // Constructors
  31. #region Properties
  32. public bool Bindable {
  33. get { return bindable; }
  34. }
  35. #endregion // Properties
  36. #region Methods
  37. [MonoTODO]
  38. public override bool Equals (object obj)
  39. {
  40. throw new NotImplementedException ();
  41. }
  42. [MonoTODO]
  43. public override int GetHashCode ()
  44. {
  45. throw new NotImplementedException ();
  46. }
  47. [MonoTODO]
  48. public override bool IsDefaultAttribute ()
  49. {
  50. throw new NotImplementedException ();
  51. }
  52. #endregion // Methods
  53. }
  54. }