1 // ==++==
2 //
3 //   Copyright (c) Microsoft Corporation.  All rights reserved.
4 //
5 // ==--==
6 // <OWNER>Microsoft</OWNER>
7 //
8 
9 using System;
10 using System.Reflection;
11 
12 namespace System.Reflection
13 {
14     [AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Method | AttributeTargets.Parameter | AttributeTargets.Field | AttributeTargets.Property | AttributeTargets.Event | AttributeTargets.Interface | AttributeTargets.Enum | AttributeTargets.Delegate,
15         AllowMultiple = true, Inherited = false)]
16 [System.Runtime.InteropServices.ComVisible(true)]
17     public sealed class ObfuscationAttribute: Attribute
18     {
19         private bool m_strip = true;
20         private bool m_exclude = true;
21         private bool m_applyToMembers = true;
22         private string m_feature = "all";
23 
ObfuscationAttribute()24         public ObfuscationAttribute()
25         {
26         }
27 
28         public bool StripAfterObfuscation
29         {
30             get
31             {
32                 return m_strip;
33             }
34             set
35             {
36                 m_strip = value;
37             }
38         }
39 
40         public bool Exclude
41         {
42             get
43             {
44                 return m_exclude;
45             }
46             set
47             {
48                 m_exclude = value;
49             }
50         }
51 
52         public bool ApplyToMembers
53         {
54             get
55             {
56                 return m_applyToMembers;
57             }
58             set
59             {
60                 m_applyToMembers = value;
61             }
62         }
63 
64         public string Feature
65         {
66             get
67             {
68                 return m_feature;
69             }
70             set
71             {
72                 m_feature = value;
73             }
74         }
75     }
76 }
77 
78