How does one go about seeing the intermediate code in .Net? What if I wanted to see what was under the cover of the SQLClient, for instance. How would I go about that?
Thanks!
Printable View
How does one go about seeing the intermediate code in .Net? What if I wanted to see what was under the cover of the SQLClient, for instance. How would I go about that?
Thanks!
You can check the repositories on GitHub: .NET Platform
Most common libraries are inside this repo: .NET Core Runtime
SqlClient has its own one: SqlClient
There are some differences from the .NET Framework sources since .NET Core is frequently updated.
I would suggest that you go here:
https://referencesource.microsoft.com/
Actually, do you mean the original source or the CIL because "intermediate code" makes it sound like the latter?
I was thinking that it sounded like CIL, but the message is pretty clearly not talking about that.
I did not know the source for .Net was available - I thought I had seen many, many years ago that you could see the IL code (that's just what I'm recalling it was referred to). Maybe while stepping into functions with a debugger... Long time ago anyway.
Apparently the actual source code for .Net is on GitHub.
If I'm not mistaken, I've got enough with what you all have posted to get into things.
You can see IL. I've never tried it when stepping into code, but would you really want to? I haven't seen it cover EVERY bit of code. I've mostly only looked at code I wrote, which occasionally called into libraries which I didn't see the IL for. I haven't tried hunting down the IL for that. Seems like it would be a total pain to read, though.
You can also configure VS to download .NET source code on demand and step through in the debugger. Maybe that's what you really want, as opposed to browsing the source code online. I guess it depends exactly what you're trying to achieve and maybe both would be useful at different times.