The Labs \ Source Viewer \ SSCLI \ System.Reflection \ ObfuscateAssemblyAttribute

  1. // ==++==
  2. //
  3. //
  4. // Copyright (c) 2006 Microsoft Corporation. All rights reserved.
  5. //
  6. // The use and distribution terms for this software are contained in the file
  7. // named license.txt, which can be found in the root of this distribution.
  8. // By using this software in any fashion, you are agreeing to be bound by the
  9. // terms of this license.
  10. //
  11. // You must not remove this notice, or any other, from this software.
  12. //
  13. //
  14. // ==--==
  15. using System;
  16. using System.Reflection;
  17. namespace System.Reflection
  18. {
  19.     [AttributeUsage(AttributeTargets.Assembly, AllowMultiple = false, Inherited = false)]
  20.     [System.Runtime.InteropServices.ComVisible(true)]
  21.     public sealed class ObfuscateAssemblyAttribute : Attribute
  22.     {
  23.         private bool m_assemblyIsPrivate;
  24.         private bool m_strip = true;
  25.        
  26.         public ObfuscateAssemblyAttribute(bool assemblyIsPrivate)
  27.         {
  28.             m_assemblyIsPrivate = assemblyIsPrivate;
  29.         }
  30.        
  31.         public bool AssemblyIsPrivate {
  32.             get { return m_assemblyIsPrivate; }
  33.         }
  34.        
  35.         public bool StripAfterObfuscation {
  36.             get { return m_strip; }
  37.             set { m_strip = value; }
  38.         }
  39.     }
  40. }

Developer Fusion