Skip to content

Programtically get the ILAst code for each method #2958

Answered by dgrunwald
unkown512 asked this question in Help
Discussion options

You must be logged in to vote

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 use CSharpDecompiler.GetILTransforms() to get the ILAst transforms normally used by the C# decompiler).

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@unkown512
Comment options

@unkown512
Comment options

@dgrunwald
Comment options

Answer selected by unkown512
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants