using System;
namespace System.ComponentModel
{
/// Specifies whether a property or event should be displayed in a Properties window.
// Token: 0x0200005C RID: 92
[AttributeUsage(AttributeTargets.All)]
public sealed class BrowsableAttribute : Attribute
{
/// Initializes a new instance of the class.
/// true if a property or event can be modified at design time; otherwise, false. The default is true.
// Token: 0x0600038D RID: 909 RVA: 0x0000AD1C File Offset: 0x00008F1C
public BrowsableAttribute(bool browsable)
{
this.browsable = browsable;
}
/// Gets a value indicating whether an object is browsable.
/// true if the object is browsable; otherwise, false.
// Token: 0x170000F4 RID: 244
// (get) Token: 0x0600038F RID: 911 RVA: 0x0000AD50 File Offset: 0x00008F50
public bool Browsable
{
get
{
return this.browsable;
}
}
/// Indicates whether this instance and a specified object are equal.
/// true if is equal to this instance; otherwise, false.
/// Another object to compare to.
// Token: 0x06000390 RID: 912 RVA: 0x0000AD58 File Offset: 0x00008F58
public override bool Equals(object obj)
{
return obj is BrowsableAttribute && (obj == this || ((BrowsableAttribute)obj).Browsable == this.browsable);
}
/// Returns the hash code for this instance.
/// A 32-bit signed integer hash code.
// Token: 0x06000391 RID: 913 RVA: 0x0000AD84 File Offset: 0x00008F84
public override int GetHashCode()
{
return this.browsable.GetHashCode();
}
/// Determines if this attribute is the default.
/// true if the attribute is the default value for this attribute class; otherwise, false.
// Token: 0x06000392 RID: 914 RVA: 0x0000AD94 File Offset: 0x00008F94
public override bool IsDefaultAttribute()
{
return this.browsable == BrowsableAttribute.Default.Browsable;
}
// Token: 0x04000126 RID: 294
private bool browsable;
/// Specifies the default value for the , which is . This static field is read-only.
// Token: 0x04000127 RID: 295
public static readonly BrowsableAttribute Default = new BrowsableAttribute(true);
/// Specifies that a property or event cannot be modified at design time. This static field is read-only.
// Token: 0x04000128 RID: 296
public static readonly BrowsableAttribute No = new BrowsableAttribute(false);
/// Specifies that a property or event can be modified at design time. This static field is read-only.
// Token: 0x04000129 RID: 297
public static readonly BrowsableAttribute Yes = new BrowsableAttribute(true);
}
}