终端一体化运控平台
Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

BrowsableAttribute.cs 2.7 KiB

há 2 anos
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Diagnostics.CodeAnalysis;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace BeDesignerSCADA.Converters
  8. {
  9. //
  10. // 摘要:
  11. // Specifies whether a property or event should be displayed in a Properties window.
  12. [AttributeUsage(AttributeTargets.All)]
  13. public class BrowsableAttribute :Attribute
  14. {
  15. //
  16. // 摘要:
  17. // Specifies the default value for the System.ComponentModel.BrowsableAttribute,
  18. // which is System.ComponentModel.BrowsableAttribute.Yes. This static field is read-only.
  19. public static BrowsableAttribute Default;
  20. //
  21. // 摘要:
  22. // Specifies that a property or event cannot be modified at design time. This static
  23. // field is read-only.
  24. public static BrowsableAttribute No;
  25. //
  26. // 摘要:
  27. // Specifies that a property or event can be modified at design time. This static
  28. // field is read-only.
  29. public static BrowsableAttribute Yes;
  30. //
  31. // 摘要:
  32. // Gets a value indicating whether an object is browsable.
  33. //
  34. // 返回结果:
  35. // true if the object is browsable; otherwise, false.
  36. public bool Browsable { get; set; }
  37. //
  38. // 摘要:
  39. // Initializes a new instance of the System.ComponentModel.BrowsableAttribute class.
  40. //
  41. // 参数:
  42. // browsable:
  43. // true if a property or event can be modified at design time; otherwise, false.
  44. // The default is true.
  45. public BrowsableAttribute(bool browsable)
  46. {
  47. this.Browsable = browsable;
  48. }
  49. //
  50. // 摘要:
  51. // Indicates whether this instance and a specified object are equal.
  52. //
  53. // 参数:
  54. // obj:
  55. // Another object to compare to.
  56. //
  57. // 返回结果:
  58. // true if obj is equal to this instance; otherwise, false.
  59. public override bool Equals([NotNullWhen(true)] object? obj)
  60. {
  61. throw null;
  62. }
  63. //
  64. // 摘要:
  65. // Returns the hash code for this instance.
  66. //
  67. // 返回结果:
  68. // A 32-bit signed integer hash code.
  69. public override int GetHashCode()
  70. {
  71. throw null;
  72. }
  73. //
  74. // 摘要:
  75. // Determines if this attribute is the default.
  76. //
  77. // 返回结果:
  78. // true if the attribute is the default value for this attribute class; otherwise,
  79. // false.
  80. public override bool IsDefaultAttribute()
  81. {
  82. throw null;
  83. }
  84. }
  85. }