using System; namespace System.ComponentModel { /// Specifies that a property or method is viewable in an editor. This class cannot be inherited. // Token: 0x0200007A RID: 122 [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Enum | AttributeTargets.Constructor | AttributeTargets.Method | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Event | AttributeTargets.Interface | AttributeTargets.Delegate)] public sealed class EditorBrowsableAttribute : Attribute { /// Initializes a new instance of the class with set to the default state. // Token: 0x06000458 RID: 1112 RVA: 0x0000CA68 File Offset: 0x0000AC68 public EditorBrowsableAttribute() { this.state = EditorBrowsableState.Always; } /// Initializes a new instance of the class with an . /// The to set to. // Token: 0x06000459 RID: 1113 RVA: 0x0000CA78 File Offset: 0x0000AC78 public EditorBrowsableAttribute(EditorBrowsableState state) { this.state = state; } /// Gets the browsable state of the property or method. /// An that is the browsable state of the property or method. // Token: 0x17000126 RID: 294 // (get) Token: 0x0600045A RID: 1114 RVA: 0x0000CA88 File Offset: 0x0000AC88 public EditorBrowsableState State { get { return this.state; } } /// Returns whether the value of the given object is equal to the current . /// true if the value of the given object is equal to that of the current; otherwise, false. /// The object to test the value equality of. // Token: 0x0600045B RID: 1115 RVA: 0x0000CA90 File Offset: 0x0000AC90 public override bool Equals(object obj) { return obj is EditorBrowsableAttribute && (obj == this || ((EditorBrowsableAttribute)obj).State == this.state); } // Token: 0x0600045C RID: 1116 RVA: 0x0000CABC File Offset: 0x0000ACBC public override int GetHashCode() { return this.state.GetHashCode(); } // Token: 0x0400016D RID: 365 private EditorBrowsableState state; } }