不混淆标记了`[Serializable]`特性的枚举类的枚举项名

1.x
walon 2025-06-12 14:25:24 +08:00
parent ea5a8e62ce
commit a61f31e289
1 changed files with 4 additions and 0 deletions

View File

@ -225,6 +225,10 @@ namespace Obfuz.ObfusPasses.SymbolObfus.Policies
TypeDef typeDef = fieldDef.DeclaringType;
if (_isScriptOrSerializableTypeCache.GetValue(typeDef))
{
if (typeDef.IsEnum)
{
return false;
}
if (fieldDef.IsPublic && !fieldDef.IsStatic)
{
return false;