change: ObfuzIgnoreAttribute的InheritByNestedTypes属性名改为ApplyToMembers
parent
9d77cfa269
commit
cd99a13562
|
@ -825,7 +825,7 @@ namespace Obfuz.Utils
|
||||||
if (ca != null)
|
if (ca != null)
|
||||||
{
|
{
|
||||||
var scope = (ObfuzScope)ca.ConstructorArguments[0].Value;
|
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;
|
bool inheritByNestedTypes = inheritByNestedTypesArg == null || (bool)inheritByNestedTypesArg.Value;
|
||||||
return cur == typeDef || inheritByNestedTypes ? (ObfuzScope?) scope : null;
|
return cur == typeDef || inheritByNestedTypes ? (ObfuzScope?) scope : null;
|
||||||
}
|
}
|
||||||
|
|
|
@ -34,7 +34,7 @@ namespace Obfuz
|
||||||
{
|
{
|
||||||
public ObfuzScope Scope { get; set; }
|
public ObfuzScope Scope { get; set; }
|
||||||
|
|
||||||
public bool InheritByNestedTypes { get; set; } = true;
|
public bool ApplyToMembers { get; set; } = true;
|
||||||
|
|
||||||
public ObfuzIgnoreAttribute(ObfuzScope scope = ObfuzScope.All)
|
public ObfuzIgnoreAttribute(ObfuzScope scope = ObfuzScope.All)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue