I have my own dll which I secure with ConfuserEx. In the ConfuserEx I'm using the "rename" protection:
<protection id="rename">
<argument name="mode" value="unicode" />
<argument name="renEnum" value="true" />
</protection>
This of course secures the DLL from viewing the code, but my class (which I have secured as part of a DLL), uses:
MethodInfo mi = typeof(MyClass).GetMethod(nameof(MyStaticMethod), BindingFlags.Static | BindingFlags.NonPublic);
Here the problem starts, because even my own code can not find and use my (protected by ConfuserEx) method. I use GetMethod to call: Delegate.CreateDelegate. What can I do to solve this problem?
Aucun commentaire:
Enregistrer un commentaire