fix: fix bug of ConfigurableRenamePolicy::MatchClassType
parent
98ee041b4d
commit
0d04b11429
|
@ -446,14 +446,6 @@ namespace Obfuz.ObfusPasses.SymbolObfus.Policies
|
|||
{
|
||||
return true;
|
||||
}
|
||||
if (!typeDef.IsValueType && (classType & ClassType.Class) != 0)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
if (typeDef.IsValueType && (classType & ClassType.Struct) != 0)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
if (typeDef.IsInterface && (classType & ClassType.Interface) != 0)
|
||||
{
|
||||
return true;
|
||||
|
@ -466,6 +458,14 @@ namespace Obfuz.ObfusPasses.SymbolObfus.Policies
|
|||
{
|
||||
return true;
|
||||
}
|
||||
if (typeDef.IsValueType && !typeDef.IsEnum && (classType & ClassType.Struct) != 0)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
if (!typeDef.IsValueType && !typeDef.IsInterface && !typeDef.IsDelegate && (classType & ClassType.Class) != 0)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue