71 lines
3.0 KiB
C#
71 lines
3.0 KiB
C#
using System;
|
|
|
|
namespace System.ComponentModel
|
|
{
|
|
/// <summary>Specifies whether a property or event should be displayed in a Properties window.</summary>
|
|
// Token: 0x0200005C RID: 92
|
|
[AttributeUsage(AttributeTargets.All)]
|
|
public sealed class BrowsableAttribute : Attribute
|
|
{
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.ComponentModel.BrowsableAttribute" /> class.</summary>
|
|
/// <param name="browsable">true if a property or event can be modified at design time; otherwise, false. The default is true. </param>
|
|
// Token: 0x0600038D RID: 909 RVA: 0x0000AD1C File Offset: 0x00008F1C
|
|
public BrowsableAttribute(bool browsable)
|
|
{
|
|
this.browsable = browsable;
|
|
}
|
|
|
|
/// <summary>Gets a value indicating whether an object is browsable.</summary>
|
|
/// <returns>true if the object is browsable; otherwise, false.</returns>
|
|
// Token: 0x170000F4 RID: 244
|
|
// (get) Token: 0x0600038F RID: 911 RVA: 0x0000AD50 File Offset: 0x00008F50
|
|
public bool Browsable
|
|
{
|
|
get
|
|
{
|
|
return this.browsable;
|
|
}
|
|
}
|
|
|
|
/// <summary>Indicates whether this instance and a specified object are equal.</summary>
|
|
/// <returns>true if <paramref name="obj" /> is equal to this instance; otherwise, false.</returns>
|
|
/// <param name="obj">Another object to compare to. </param>
|
|
// 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);
|
|
}
|
|
|
|
/// <summary>Returns the hash code for this instance.</summary>
|
|
/// <returns>A 32-bit signed integer hash code.</returns>
|
|
// Token: 0x06000391 RID: 913 RVA: 0x0000AD84 File Offset: 0x00008F84
|
|
public override int GetHashCode()
|
|
{
|
|
return this.browsable.GetHashCode();
|
|
}
|
|
|
|
/// <summary>Determines if this attribute is the default.</summary>
|
|
/// <returns>true if the attribute is the default value for this attribute class; otherwise, false.</returns>
|
|
// 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;
|
|
|
|
/// <summary>Specifies the default value for the <see cref="T:System.ComponentModel.BrowsableAttribute" />, which is <see cref="F:System.ComponentModel.BrowsableAttribute.Yes" />. This static field is read-only.</summary>
|
|
// Token: 0x04000127 RID: 295
|
|
public static readonly BrowsableAttribute Default = new BrowsableAttribute(true);
|
|
|
|
/// <summary>Specifies that a property or event cannot be modified at design time. This static field is read-only.</summary>
|
|
// Token: 0x04000128 RID: 296
|
|
public static readonly BrowsableAttribute No = new BrowsableAttribute(false);
|
|
|
|
/// <summary>Specifies that a property or event can be modified at design time. This static field is read-only.</summary>
|
|
// Token: 0x04000129 RID: 297
|
|
public static readonly BrowsableAttribute Yes = new BrowsableAttribute(true);
|
|
}
|
|
}
|