ObfuscationAttribute.cs 951 B

123456789101112131415161718192021
  1. // Licensed to the .NET Foundation under one or more agreements.
  2. // The .NET Foundation licenses this file to you under the MIT license.
  3. // See the LICENSE file in the project root for more information.
  4. namespace System.Reflection
  5. {
  6. [AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Method | AttributeTargets.Parameter | AttributeTargets.Field | AttributeTargets.Property | AttributeTargets.Event | AttributeTargets.Interface | AttributeTargets.Enum | AttributeTargets.Delegate,
  7. AllowMultiple = true, Inherited = false)]
  8. public sealed class ObfuscationAttribute : Attribute
  9. {
  10. public ObfuscationAttribute()
  11. {
  12. }
  13. public bool StripAfterObfuscation { get; set; } = true;
  14. public bool Exclude { get; set; } = true;
  15. public bool ApplyToMembers { get; set; } = true;
  16. public string Feature { get; set; } = "all";
  17. }
  18. }