using System; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Linq; using System.Text; using System.Threading.Tasks; namespace BeDesignerSCADA.Converters { // // 摘要: // Specifies whether a property or event should be displayed in a Properties window. [AttributeUsage(AttributeTargets.All)] public class BrowsableAttribute :Attribute { // // 摘要: // Specifies the default value for the System.ComponentModel.BrowsableAttribute, // which is System.ComponentModel.BrowsableAttribute.Yes. This static field is read-only. public static BrowsableAttribute Default; // // 摘要: // Specifies that a property or event cannot be modified at design time. This static // field is read-only. public static BrowsableAttribute No; // // 摘要: // Specifies that a property or event can be modified at design time. This static // field is read-only. public static BrowsableAttribute Yes; // // 摘要: // Gets a value indicating whether an object is browsable. // // 返回结果: // true if the object is browsable; otherwise, false. public bool Browsable { get; set; } // // 摘要: // Initializes a new instance of the System.ComponentModel.BrowsableAttribute class. // // 参数: // browsable: // true if a property or event can be modified at design time; otherwise, false. // The default is true. public BrowsableAttribute(bool browsable) { this.Browsable = browsable; } // // 摘要: // Indicates whether this instance and a specified object are equal. // // 参数: // obj: // Another object to compare to. // // 返回结果: // true if obj is equal to this instance; otherwise, false. public override bool Equals([NotNullWhen(true)] object? obj) { throw null; } // // 摘要: // Returns the hash code for this instance. // // 返回结果: // A 32-bit signed integer hash code. public override int GetHashCode() { throw null; } // // 摘要: // Determines if this attribute is the default. // // 返回结果: // true if the attribute is the default value for this attribute class; otherwise, // false. public override bool IsDefaultAttribute() { throw null; } } }