ObfuscateAssemblyAttribute.cs 651 B

12345678910111213141516171819
  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, AllowMultiple = false, Inherited = false)]
  7. public sealed class ObfuscateAssemblyAttribute : Attribute
  8. {
  9. public ObfuscateAssemblyAttribute(bool assemblyIsPrivate)
  10. {
  11. AssemblyIsPrivate = assemblyIsPrivate;
  12. }
  13. public bool AssemblyIsPrivate { get; }
  14. public bool StripAfterObfuscation { get; set; } = true;
  15. }
  16. }