summaryrefslogtreecommitdiff
path: root/src/mscorlib/shared/System/Reflection/ObfuscationAttribute.cs
blob: 11d93b6313d9e999f6756ab959f0c57eabe1fa6f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

namespace System.Reflection
{
    [AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Method | AttributeTargets.Parameter | AttributeTargets.Field | AttributeTargets.Property | AttributeTargets.Event | AttributeTargets.Interface | AttributeTargets.Enum | AttributeTargets.Delegate,
        AllowMultiple = true, Inherited = false)]
    public sealed class ObfuscationAttribute : Attribute
    {
        public ObfuscationAttribute()
        {
        }

        public bool StripAfterObfuscation { get; set; } = true;
        public bool Exclude { get; set; } = true;
        public bool ApplyToMembers { get; set; } = true;
        public string Feature { get; set; } = "all";
    }
}