obfuz/com.code-philosophy.obfuz/Runtime/ObfuzIgnoreAttribute.cs

21 lines
480 B
C#
Raw Normal View History

using System;
namespace Obfuz
{
2025-05-21 13:33:03 +08:00
[AttributeUsage(AttributeTargets.All, Inherited = false, AllowMultiple = false)]
public class ObfuzIgnoreAttribute : Attribute
{
2025-05-21 13:33:03 +08:00
public ObfuzScope Scope { get; set; }
2025-05-26 19:22:55 +08:00
public bool ApplyToNestedTypes { get; set; } = true;
public bool ApplyToChildTypes { get; set; } = false;
2025-05-21 13:33:03 +08:00
public ObfuzIgnoreAttribute(ObfuzScope scope = ObfuzScope.All)
{
this.Scope = scope;
}
}
}