void RemoveObfuscatorJunk(MethodsDecrypterBase methodsDecrypter) { AddTypesToBeRemoved(methodsDecrypter.DelegateTypes, "Obfuscator method delegate type"); AddResourceToBeRemoved(methodsDecrypter.Resource, "Encrypted methods resource"); AddTypeToBeRemoved(mainType.InvokerDelegate, "Invoker delegate type"); AddFieldToBeRemoved(mainType.InvokerInstanceField, "Invoker delegate instance field"); foreach (var info in mainType.RuntimeFileInfos) { AddMethodToBeRemoved(info.ProtectMethod, "Obfuscator 'Protect' init method"); } mainType.CleanUp(); }
void RemoveObfuscatorJunk(MethodsDecrypterBase methodsDecrypter) { AddTypesToBeRemoved(methodsDecrypter.DelegateTypes, "Obfuscator method delegate type"); AddResourceToBeRemoved(methodsDecrypter.Resource, "Encrypted methods resource"); AddTypeToBeRemoved(mainType.InvokerDelegate, "Invoker delegate type"); AddFieldToBeRemoved(mainType.InvokerInstanceField, "Invoker delegate instance field"); foreach (var info in mainType.RuntimeFileInfos) AddMethodToBeRemoved(info.ProtectMethod, "Obfuscator 'Protect' init method"); mainType.CleanUp(); }