Files
Dec2017-Script-Dump/mscorlib/System/Diagnostics/DebuggerBrowsableAttribute.cs
T
2026-06-04 11:42:34 +02:00

40 lines
1.5 KiB
C#

using System;
using System.Runtime.InteropServices;
namespace System.Diagnostics
{
/// <summary>Determines if and how a member is displayed in the debugger variable windows. This class cannot be inherited.</summary>
/// <filterpriority>1</filterpriority>
// Token: 0x0200015D RID: 349
[ComVisible(true)]
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field)]
public sealed class DebuggerBrowsableAttribute : Attribute
{
/// <summary>Initializes a new instance of the <see cref="T:System.Diagnostics.DebuggerBrowsableAttribute" /> class. </summary>
/// <param name="state">One of the <see cref="T:System.Diagnostics.DebuggerBrowsableState" /> values that specifies how to display the member.</param>
/// <exception cref="T:System.ArgumentOutOfRangeException">
/// <paramref name="state" /> is not one of the <see cref="T:System.Diagnostics.DebuggerBrowsableState" /> values.</exception>
// Token: 0x06001135 RID: 4405 RVA: 0x00045040 File Offset: 0x00043240
public DebuggerBrowsableAttribute(DebuggerBrowsableState state)
{
this.state = state;
}
/// <summary>Gets the display state for the attribute.</summary>
/// <returns>One of the <see cref="T:System.Diagnostics.DebuggerBrowsableState" /> values.</returns>
/// <filterpriority>2</filterpriority>
// Token: 0x170002EC RID: 748
// (get) Token: 0x06001136 RID: 4406 RVA: 0x00045050 File Offset: 0x00043250
public DebuggerBrowsableState State
{
get
{
return this.state;
}
}
// Token: 0x04000442 RID: 1090
private DebuggerBrowsableState state;
}
}