Accelerate decompilation process (to get usings only) #2977
Answered
by
dgrunwald
JiriOgurek
asked this question in
Help
-
Hi, I would like to ask you, if there's an option to accelerate decompilation process to get usings only, please? |
Beta Was this translation helpful? Give feedback.
Answered by
dgrunwald
May 4, 2023
Replies: 1 comment 11 replies
-
Usings depend on whether the decompiler had to introduce temporary variables (in which case it'll spell out the variable type which might need a using), or could simplify the logic into a single expression (in which case the type of the temporary doesn't need a using). |
Beta Was this translation helpful? Give feedback.
11 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
AFAIK the C# compiler already ignores unused references (doesn't store them in the .dll), so if you don't want class-level analysis, references from the .dll should be good enough. (though note that references use assembly-granularity, where as usings are namespace-granularity)
You don't need a decompiler at all in that case; you can e.g. directly use System.Reflection.Metadata, or maybe Mono.Cecil as that tends to be easier to use.