change: ObfuzIgnoreAttribute的InheritByNestedTypes属性名改为ApplyToMembers

before-split
walon 2025-05-25 12:42:38 +08:00
parent 9d77cfa269
commit cd99a13562
2 changed files with 2 additions and 2 deletions

View File

@ -825,7 +825,7 @@ namespace Obfuz.Utils
if (ca != null)
{
var scope = (ObfuzScope)ca.ConstructorArguments[0].Value;
CANamedArgument inheritByNestedTypesArg = ca.GetNamedArgument("InheritByNestedTypes", false);
CANamedArgument inheritByNestedTypesArg = ca.GetNamedArgument("ApplyToMembers", false);
bool inheritByNestedTypes = inheritByNestedTypesArg == null || (bool)inheritByNestedTypesArg.Value;
return cur == typeDef || inheritByNestedTypes ? (ObfuzScope?) scope : null;
}

View File

@ -34,7 +34,7 @@ namespace Obfuz
{
public ObfuzScope Scope { get; set; }
public bool InheritByNestedTypes { get; set; } = true;
public bool ApplyToMembers { get; set; } = true;
public ObfuzIgnoreAttribute(ObfuzScope scope = ObfuzScope.All)
{