Esempio n. 1
0
        public Renamer(IDeobfuscatorContext deobfuscatorContext, IEnumerable<IObfuscatedFile> files, RenamerFlags flags)
        {
            RenamerFlags = flags;

            modules = new Modules(deobfuscatorContext);
            isDelegateClass = new DerivedFrom(delegateClasses);
            mergeStateHelper = new MergeStateHelper(memberInfos);

            foreach (var file in files)
                modules.add(new Module(file));
        }
Esempio n. 2
0
        public Renamer(IEnumerable<IObfuscatedFile> files)
        {
            RenameNamespaces = true;
            RenameTypes = true;
            RenameProperties = true;
            RenameEvents = true;
            RenameFields = true;
            RenameMethods = true;
            RenameMethodArgs = true;
            RenameGenericParams = true;
            RestoreProperties = true;
            RestorePropertiesFromNames = true;
            RestoreEvents = true;
            RestoreEventsFromNames = true;

            isDelegateClass = new DerivedFrom(delegateClasses);
            mergeStateHelper = new MergeStateHelper(memberInfos);

            foreach (var file in files)
                modules.add(new Module(file));
        }