fix: if type contains `[ObfuzIgnore]` attribute, both itself and all nested type should be skipped SymbolObfus.

before-split
walon 2025-05-18 22:17:20 +08:00
parent 09ad0eb744
commit 3488aee789
1 changed files with 4 additions and 0 deletions

View File

@ -16,6 +16,10 @@ namespace Obfuz.ObfusPasses.SymbolObfus.Policies
{ {
return false; return false;
} }
if (typeDef.DeclaringType != null && MetaUtil.HasObfuzIgnoreAttribute(typeDef.DeclaringType))
{
return false;
}
return true; return true;
} }