public static void FromMappedINI2IL() { ConfigurationManager <string> configurator = new ConfigurationManager <string>(); configurator.Sources.Add(new INISource <string>()); configurator.Targets.Add(new ILTarget <string>()); URIManager resManager = new URIManager(); resManager.Importers.Add(new FileImporter()); resManager.Exporters.Add(new FileExporter()); configurator.StreamProvider = resManager; MapManager <string> mapManager = new MapManager <string>(); mapManager.Add(new INIMaper <string>()); configurator.MapManager = mapManager; configurator.LoadConfiguration((new Uri( Path.Combine(resourcePath, "test.ini")))); // TypeManager<string> typeManager = new TypeManager<string>(); // configurator.TypeManager = typeManager; // // configurator.SaveConfiguration(new Uri( // Path.Combine(resourcePath,"test.map_modified.dll")), "dll"); ViewCurrentCIR(configurator.IR, ""); Console.WriteLine("Successfully unmapped and converted from ini to IL!"); }
public int Add(Map Map) { return(pm.Add(Map)); }