obfuz/Editor/ObfusPasses/CallObfus/IObfuscationPolicy.cs

20 lines
551 B
C#
Raw Normal View History

using dnlib.DotNet;
namespace Obfuz.ObfusPasses.CallObfus
{
public interface IObfuscationPolicy
{
bool NeedObfuscateCallInMethod(MethodDef method);
2025-07-01 18:46:09 +08:00
bool NeedObfuscateCalledMethod(MethodDef callerMethod, IMethod calledMethod, bool callVir);
}
public abstract class ObfuscationPolicyBase : IObfuscationPolicy
{
public abstract bool NeedObfuscateCallInMethod(MethodDef method);
2025-07-01 18:46:09 +08:00
public abstract bool NeedObfuscateCalledMethod(MethodDef callerMethod, IMethod calledMethod, bool callVir);
}
}