57 lines
2.0 KiB
C#
57 lines
2.0 KiB
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
|
|
namespace System.Reflection
|
|
{
|
|
/// <summary>Instructs obfuscation tools to use their standard obfuscation rules for the appropriate assembly type.</summary>
|
|
// Token: 0x0200025F RID: 607
|
|
[ComVisible(true)]
|
|
[AttributeUsage(AttributeTargets.Assembly, Inherited = false)]
|
|
public sealed class ObfuscateAssemblyAttribute : Attribute
|
|
{
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Reflection.ObfuscateAssemblyAttribute" /> class, specifying whether the assembly to be obfuscated is public or private.</summary>
|
|
/// <param name="assemblyIsPrivate">true if the assembly is used within the scope of one application; otherwise, false.</param>
|
|
// Token: 0x06001F8F RID: 8079 RVA: 0x00073E8C File Offset: 0x0007208C
|
|
public ObfuscateAssemblyAttribute(bool assemblyIsPrivate)
|
|
{
|
|
this.strip = true;
|
|
this.is_private = assemblyIsPrivate;
|
|
}
|
|
|
|
/// <summary>Gets a <see cref="T:System.Boolean" /> value indicating whether the assembly was marked private.</summary>
|
|
/// <returns>true if the assembly was marked private; otherwise, false. </returns>
|
|
// Token: 0x170005DC RID: 1500
|
|
// (get) Token: 0x06001F90 RID: 8080 RVA: 0x00073EA4 File Offset: 0x000720A4
|
|
public bool AssemblyIsPrivate
|
|
{
|
|
get
|
|
{
|
|
return this.is_private;
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets or sets a <see cref="T:System.Boolean" /> value indicating whether the obfuscation tool should remove the attribute after processing.</summary>
|
|
/// <returns>true if the obfuscation tool should remove the attribute after processing; otherwise, false. The default value for this property is true.</returns>
|
|
// Token: 0x170005DD RID: 1501
|
|
// (get) Token: 0x06001F91 RID: 8081 RVA: 0x00073EAC File Offset: 0x000720AC
|
|
// (set) Token: 0x06001F92 RID: 8082 RVA: 0x00073EB4 File Offset: 0x000720B4
|
|
public bool StripAfterObfuscation
|
|
{
|
|
get
|
|
{
|
|
return this.strip;
|
|
}
|
|
set
|
|
{
|
|
this.strip = value;
|
|
}
|
|
}
|
|
|
|
// Token: 0x04000AE5 RID: 2789
|
|
private bool is_private;
|
|
|
|
// Token: 0x04000AE6 RID: 2790
|
|
private bool strip;
|
|
}
|
|
}
|