BrowsableAttribute.cs 689 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. //
  2. // System.ComponentModel.BrowsableAttribute.cs
  3. //
  4. // Author:
  5. // Miguel de Icaza ([email protected])
  6. //
  7. // (C) Ximian, Inc. http://www.ximian.com
  8. //
  9. //
  10. namespace System.ComponentModel {
  11. [AttributeUsage (AttributeTargets.All)]
  12. public sealed class BrowsableAttribute : Attribute {
  13. bool browsable;
  14. public static readonly BrowsableAttribute No;
  15. public static readonly BrowsableAttribute Yes;
  16. static BrowsableAttribute ()
  17. {
  18. No = new BrowsableAttribute (false);
  19. Yes = new BrowsableAttribute (false);
  20. }
  21. public BrowsableAttribute (bool browsable)
  22. {
  23. this.browsable = browsable;
  24. }
  25. public bool Browsable {
  26. get {
  27. return browsable;
  28. }
  29. }
  30. }
  31. }