DesignTimeVisibleAttribute.cs 1.3 KB

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