100 lines
3.2 KiB
C#
100 lines
3.2 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Collections.Specialized;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace System.Diagnostics
|
|
{
|
|
/// <summary>Provides an abstract base class to create new debugging and tracing switches.</summary>
|
|
// Token: 0x020000BC RID: 188
|
|
[Token(Token = "0x20000BC")]
|
|
public abstract class Switch
|
|
{
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Diagnostics.Switch" /> class.</summary>
|
|
/// <param name="displayName">The name of the switch.</param>
|
|
/// <param name="description">The description for the switch.</param>
|
|
// Token: 0x06000475 RID: 1141 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6000475")]
|
|
[Address(RVA = "0x2F48800", Offset = "0x2F47800", VA = "0x182F48800")]
|
|
protected Switch(string displayName, string description)
|
|
{
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Diagnostics.Switch" /> class, specifying the display name, description, and default value for the switch.</summary>
|
|
/// <param name="displayName">The name of the switch.</param>
|
|
/// <param name="description">The description of the switch.</param>
|
|
/// <param name="defaultSwitchValue">The default value for the switch.</param>
|
|
// Token: 0x06000476 RID: 1142 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6000476")]
|
|
[Address(RVA = "0x2F48640", Offset = "0x2F47640", VA = "0x182F48640")]
|
|
protected Switch(string displayName, string description, string defaultSwitchValue)
|
|
{
|
|
}
|
|
|
|
// Token: 0x06000477 RID: 1143 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6000477")]
|
|
[Address(RVA = "0x2F48870", Offset = "0x2F47870", VA = "0x182F48870")]
|
|
private static void _pruneCachedSwitches()
|
|
{
|
|
}
|
|
|
|
// Token: 0x04000365 RID: 869
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4000365")]
|
|
private object switchSettings;
|
|
|
|
// Token: 0x04000366 RID: 870
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4000366")]
|
|
private readonly string description;
|
|
|
|
// Token: 0x04000367 RID: 871
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x4000367")]
|
|
private readonly string displayName;
|
|
|
|
// Token: 0x04000368 RID: 872
|
|
[FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x4000368")]
|
|
private int switchSetting;
|
|
|
|
// Token: 0x04000369 RID: 873
|
|
[FieldOffset(Offset = "0x2C")]
|
|
[Token(Token = "0x4000369")]
|
|
private bool initialized;
|
|
|
|
// Token: 0x0400036A RID: 874
|
|
[FieldOffset(Offset = "0x2D")]
|
|
[Token(Token = "0x400036A")]
|
|
private bool initializing;
|
|
|
|
// Token: 0x0400036B RID: 875
|
|
[FieldOffset(Offset = "0x30")]
|
|
[Token(Token = "0x400036B")]
|
|
private string switchValueString;
|
|
|
|
// Token: 0x0400036C RID: 876
|
|
[FieldOffset(Offset = "0x38")]
|
|
[Token(Token = "0x400036C")]
|
|
private StringDictionary attributes;
|
|
|
|
// Token: 0x0400036D RID: 877
|
|
[FieldOffset(Offset = "0x40")]
|
|
[Token(Token = "0x400036D")]
|
|
private string defaultValue;
|
|
|
|
// Token: 0x0400036E RID: 878
|
|
[FieldOffset(Offset = "0x48")]
|
|
[Token(Token = "0x400036E")]
|
|
private object m_intializedLock;
|
|
|
|
// Token: 0x0400036F RID: 879
|
|
[Token(Token = "0x400036F")]
|
|
private static List<WeakReference> switches;
|
|
|
|
// Token: 0x04000370 RID: 880
|
|
[Token(Token = "0x4000370")]
|
|
private static int s_LastCollectionCount;
|
|
}
|
|
}
|