Files
2026-06-04 11:42:34 +02:00

103 lines
3.6 KiB
C#

using System;
using System.Runtime.InteropServices;
namespace System.Reflection
{
/// <summary>Instructs obfuscation tools to take the specified actions for an assembly, type, or member.</summary>
// Token: 0x02000260 RID: 608
[ComVisible(true)]
[AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Enum | AttributeTargets.Method | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Event | AttributeTargets.Interface | AttributeTargets.Parameter | AttributeTargets.Delegate, AllowMultiple = true, Inherited = false)]
public sealed class ObfuscationAttribute : Attribute
{
/// <summary>Initializes a new instance of the <see cref="T:System.Reflection.ObfuscationAttribute" /> class.</summary>
// Token: 0x06001F93 RID: 8083 RVA: 0x00073EC0 File Offset: 0x000720C0
public ObfuscationAttribute()
{
this.exclude = true;
this.strip = true;
this.applyToMembers = true;
this.feature = "all";
}
/// <summary>Gets or sets a <see cref="T:System.Boolean" /> value indicating whether the obfuscation tool should exclude the type or member from obfuscation.</summary>
/// <returns>true if the type or member to which this attribute is applied should be excluded from obfuscation; otherwise, false. The default is true.</returns>
// Token: 0x170005DE RID: 1502
// (get) Token: 0x06001F94 RID: 8084 RVA: 0x00073EF4 File Offset: 0x000720F4
// (set) Token: 0x06001F95 RID: 8085 RVA: 0x00073EFC File Offset: 0x000720FC
public bool Exclude
{
get
{
return this.exclude;
}
set
{
this.exclude = value;
}
}
/// <summary>Gets or sets a <see cref="T:System.Boolean" /> value indicating whether the obfuscation tool should remove this attribute after processing.</summary>
/// <returns>true if an obfuscation tool should remove the attribute after processing; otherwise, false. The default is true.</returns>
// Token: 0x170005DF RID: 1503
// (get) Token: 0x06001F96 RID: 8086 RVA: 0x00073F08 File Offset: 0x00072108
// (set) Token: 0x06001F97 RID: 8087 RVA: 0x00073F10 File Offset: 0x00072110
public bool StripAfterObfuscation
{
get
{
return this.strip;
}
set
{
this.strip = value;
}
}
/// <summary>Gets or sets a <see cref="T:System.Boolean" /> value indicating whether the attribute of a type is to apply to the members of the type.</summary>
/// <returns>true if the attribute is to apply to the members of the type; otherwise, false. The default is true.</returns>
// Token: 0x170005E0 RID: 1504
// (get) Token: 0x06001F98 RID: 8088 RVA: 0x00073F1C File Offset: 0x0007211C
// (set) Token: 0x06001F99 RID: 8089 RVA: 0x00073F24 File Offset: 0x00072124
public bool ApplyToMembers
{
get
{
return this.applyToMembers;
}
set
{
this.applyToMembers = value;
}
}
/// <summary>Gets or sets a string value that is recognized by the obfuscation tool, and which specifies processing options. </summary>
/// <returns>A string value that is recognized by the obfuscation tool, and which specifies processing options. The default is "all".</returns>
// Token: 0x170005E1 RID: 1505
// (get) Token: 0x06001F9A RID: 8090 RVA: 0x00073F30 File Offset: 0x00072130
// (set) Token: 0x06001F9B RID: 8091 RVA: 0x00073F38 File Offset: 0x00072138
public string Feature
{
get
{
return this.feature;
}
set
{
this.feature = value;
}
}
// Token: 0x04000AE7 RID: 2791
private bool exclude;
// Token: 0x04000AE8 RID: 2792
private bool strip;
// Token: 0x04000AE9 RID: 2793
private bool applyToMembers;
// Token: 0x04000AEA RID: 2794
private string feature;
}
}