56 lines
2.7 KiB
C#
56 lines
2.7 KiB
C#
using System;
|
|
|
|
namespace System.ComponentModel
|
|
{
|
|
/// <summary>Specifies that a property or method is viewable in an editor. This class cannot be inherited.</summary>
|
|
// 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
|
|
{
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.ComponentModel.EditorBrowsableAttribute" /> class with <see cref="P:System.ComponentModel.EditorBrowsableAttribute.State" /> set to the default state.</summary>
|
|
// Token: 0x06000458 RID: 1112 RVA: 0x0000CA68 File Offset: 0x0000AC68
|
|
public EditorBrowsableAttribute()
|
|
{
|
|
this.state = EditorBrowsableState.Always;
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.ComponentModel.EditorBrowsableAttribute" /> class with an <see cref="T:System.ComponentModel.EditorBrowsableState" />.</summary>
|
|
/// <param name="state">The <see cref="T:System.ComponentModel.EditorBrowsableState" /> to set <see cref="P:System.ComponentModel.EditorBrowsableAttribute.State" /> to. </param>
|
|
// Token: 0x06000459 RID: 1113 RVA: 0x0000CA78 File Offset: 0x0000AC78
|
|
public EditorBrowsableAttribute(EditorBrowsableState state)
|
|
{
|
|
this.state = state;
|
|
}
|
|
|
|
/// <summary>Gets the browsable state of the property or method.</summary>
|
|
/// <returns>An <see cref="T:System.ComponentModel.EditorBrowsableState" /> that is the browsable state of the property or method.</returns>
|
|
// Token: 0x17000126 RID: 294
|
|
// (get) Token: 0x0600045A RID: 1114 RVA: 0x0000CA88 File Offset: 0x0000AC88
|
|
public EditorBrowsableState State
|
|
{
|
|
get
|
|
{
|
|
return this.state;
|
|
}
|
|
}
|
|
|
|
/// <summary>Returns whether the value of the given object is equal to the current <see cref="T:System.ComponentModel.EditorBrowsableAttribute" />.</summary>
|
|
/// <returns>true if the value of the given object is equal to that of the current; otherwise, false.</returns>
|
|
/// <param name="obj">The object to test the value equality of. </param>
|
|
// 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;
|
|
}
|
|
}
|