Cecil Decompiler -- can i pass in a file from a different solution?

View: New views
1 Messages — Rating Filter:   Alert me  

Cecil Decompiler -- can i pass in a file from a different solution?

by yeeen :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Regarding Cecil.Decompiler:
 

            var method = GetProgramMethod(file, name);
            var cfg = ControlFlowGraph.Create(method);
            FormatControlFlowGraph(Console.Out, cfg);
            var language = CSharp.GetLanguage(CSharpVersion.V3);
            var writer = language.GetWriter(new PlainTextFormatter(Console.Out));
            writer.Write(method);
 
Can I call a method from another solution instead, replacing the variable "file"?
I tried putting in the path of the file, but it doesn't work...
 
Thanks!

--~--~---------~--~----~------------~-------~--~----~
--
mono-cecil
-~----------~----~----~----~------~----~------~--~---