Skip to content

Conversation

@limuy2022
Copy link

Sorry, I think I am not familiar enough with C# and ILSpy, so I can't finish it by myself. But I have done some simple work, such as adding IL with C# tag. I didn't find an efficient way to combine c# with il (I have noticed SequencePoint but I used it improperly)

Hope my simple work can help you a little.

@Rpinski
Copy link
Member

Rpinski commented Jun 11, 2025

Hi @limuy2022,

Thank you for starting with a first approach. This is how ILSpy application implements this output:

https://github.com/icsharpcode/ILSpy/blob/master/ILSpy/Languages/CSharpILMixedLanguage.cs

There is nothing ATM exposing this to ilspy-vscode's backend, I'll have a look at that as soon as I have time, especially to check if there is any other way than just copying and adapting ILSpy's code. But maybe this is the only way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants