Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7174819
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T16:08:28+00:00 2026-05-28T16:08:28+00:00

Sometimes I would like to quickly see the IL representation of my code snippets

  • 0

Sometimes I would like to quickly see the IL representation of my code snippets in C#, to understand what exactly happens to various code statements under the hood, like it’s done here for example.

I know there are ildasm, Reflector, ILSpy, dotPeek and probably quite some other tools available. What I’m wondering here is that if there is any more elegant way from writing some lines of code to seeing the corresponding IL, than compiling your .net code, loading the assembly into one of those programs and finding the code you are curious about.

Maybe having a plugin for visual studio, which would add a right click option for “build and see IL code” or any other convenient way?

Edit:

After some more googling I found NDasm codeplex project which does what I was looking for – integrates into visual studio.

But vcsjones’ LINQPad suggestion is great as well, thus I am marking it as accepted, thanks. A really useful tool …

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T16:08:29+00:00Added an answer on May 28, 2026 at 4:08 pm

    I typically use LINQPad for that. Just paste in some C# and switch to the IL view. For example:

    enter image description here

    I like it because you can also just post expressions or statements instead of a full program:

    enter image description here

    Best of all, it’s free (with optional premium features).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Sometimes i would like to search for text containing a new line character and
We are sometimes getting an OutOfMemoryError in production and I would like to be
Sometimes when I'm writing XLANG/s code in an expression shape, it would be more
Sometimes I would like to know how a cool software is made or the
I'm using the the C++/Qt print function qDebug, but sometimes I would like to
Sometimes I would like to test an intermediate value in a method. But the
I was recently working on a windows program that would sometimes become unresponsive when
In my program, I'm grep-ing via NSTask. For some reason, sometimes I would get
How would you to convert or cast a List<T> to EntityCollection<T> ? Sometimes this
I sometimes need to debug JS in other browsers, and it would be really

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.