Get information about the index of a method in the containing type #70291
Unanswered
daveMueller
asked this question in
Q&A
Replies: 1 comment 1 reply
-
What purpose do you need this information for? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I wonder if it is possible to get the index of a method in the containing type after compilation? Can this information be found somewhere inside the PDB?
When I look into the documentation of the file
https://github.com/dotnet/roslyn/blob/main/src/Compilers/Core/Portable/CodeGen/DebugId.cs
it says something about 'the ordinal is included in the custom debug information record attached to the method'. But for instance when I try to analyze the assembly with
Mono.Cecil
, I can't find this information anywhere.This is a bit related to another question I asked here a while back #68664.
Beta Was this translation helpful? Give feedback.
All reactions