-
Is there a way in the API to get the ILAst output from ILSpy? In the UI app, you can get the ILAst by clicking each individual method/etc one at a time. However, it would be nice to get the full ILAst for all methods in one pass. |
Beta Was this translation helpful? Give feedback.
Answered by
dgrunwald
Apr 10, 2023
Replies: 1 comment 3 replies
-
Not with ILSpy; but you can use the decompiler itself as a NuGet package (ICSharpCode.Decompiler). |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
unkown512
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Not with ILSpy; but you can use the decompiler itself as a NuGet package (ICSharpCode.Decompiler).
Use the
ILReader.ReadIL()
method to get the initial ILAst, then apply the transforms as needed (you can useCSharpDecompiler.GetILTransforms()
to get the ILAst transforms normally used by the C# decompiler).