/// <summary> /// Adds a file to the deobfuscator and loads it. /// </summary> /// <param name="fileName">The name of the obfuscation map file to load.</param> public void AddFile(string fileName) { if (deobfuscatorImpl == null) { // Find out what system we need for this file if (SeeUnsharpDeobfuscator.SupportsFile(fileName)) { deobfuscatorImpl = new SeeUnsharpDeobfuscator(); } else if (DotfuscatorDeobfuscator.SupportsFile(fileName)) { deobfuscatorImpl = new DotfuscatorDeobfuscator(); } else { throw new NotSupportedException("The obfuscation map file is not supported."); } } deobfuscatorImpl.AddFile(fileName); }