From cd99a13562f6b8e0f197a6f2f7944ec96eb883a2 Mon Sep 17 00:00:00 2001 From: walon Date: Sun, 25 May 2025 12:42:38 +0800 Subject: [PATCH] =?UTF-8?q?change:=20ObfuzIgnoreAttribute=E7=9A=84InheritB?= =?UTF-8?q?yNestedTypes=E5=B1=9E=E6=80=A7=E5=90=8D=E6=94=B9=E4=B8=BAApplyT?= =?UTF-8?q?oMembers?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- com.code-philosophy.obfuz/Editor/Utils/MetaUtil.cs | 2 +- com.code-philosophy.obfuz/Runtime/ObfuzIgnoreAttribute.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/com.code-philosophy.obfuz/Editor/Utils/MetaUtil.cs b/com.code-philosophy.obfuz/Editor/Utils/MetaUtil.cs index fb06398..92120f7 100644 --- a/com.code-philosophy.obfuz/Editor/Utils/MetaUtil.cs +++ b/com.code-philosophy.obfuz/Editor/Utils/MetaUtil.cs @@ -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; } diff --git a/com.code-philosophy.obfuz/Runtime/ObfuzIgnoreAttribute.cs b/com.code-philosophy.obfuz/Runtime/ObfuzIgnoreAttribute.cs index 4bc4a9a..b05062e 100644 --- a/com.code-philosophy.obfuz/Runtime/ObfuzIgnoreAttribute.cs +++ b/com.code-philosophy.obfuz/Runtime/ObfuzIgnoreAttribute.cs @@ -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) {