How can I get the function name when navigating symbols? #116
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Consider this C# pseudo-code:
I want to browse the assembly and discover where is the line containing the function "header" (i.e. the name, in my case - "Main"). Currently, I can get the method instructions and from them get the line which generates the first IL instruction. In my case this is the "Console.WriteLine()" line. Can I get to the header?
I know that it can span multiple lines, in this case, I would like to get to the starting line, if possible.
My current code looks like:
How can I improve it?
How is this a bug? Please use the appropriate channels to ask questions about Cecil.