|
-
Jul 5th, 2020, 12:14 PM
#1
Seeing the intermediate code
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!
-
Jul 5th, 2020, 12:40 PM
#2
Re: Seeing the intermediate code
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.
-
Jul 5th, 2020, 12:48 PM
#3
Re: Seeing the intermediate code
-
Jul 5th, 2020, 12:49 PM
#4
Re: Seeing the intermediate code
Actually, do you mean the original source or the CIL because "intermediate code" makes it sound like the latter?
-
Jul 5th, 2020, 02:03 PM
#5
Re: Seeing the intermediate code
I was thinking that it sounded like CIL, but the message is pretty clearly not talking about that.
My usual boring signature: Nothing
 
-
Jul 5th, 2020, 03:15 PM
#6
Re: Seeing the intermediate code
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.
-
Jul 5th, 2020, 06:33 PM
#7
Re: Seeing the intermediate code
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.
My usual boring signature: Nothing
 
-
Jul 6th, 2020, 12:18 AM
#8
Re: Seeing the intermediate code
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|