Home > database >  How can I see the implementations of these methods?
How can I see the implementations of these methods?

Time:06-28

In the Program.cs of an ASP.NET Core 3.1 app, you can see methods like CreateHostBuilder() and Host.CreateDefaultBuilder() which return an IHostBuilder instance, and Build() which returns an IHost instance, etc.

I wanna take a look at what's happening behind the scenes, "Go to Definition" brings me to the static class Host where the methods are only declared without implementation just like things are with abstract classes or interfaces.

Anyone can help me with this?

CodePudding user response:

Try to look in the Asp.Net Core repo

Also, you may use the Rider IDE, which has a pretty good decompiler out of the box. But, keep in mind that you would probably need to buy\find a license for it.

CodePudding user response:

If you just use Go to Definition F12 to see the details definition for the method it will just show the method name and description, it will not show the codes implement.

If you want to see details information, you could find the details inside the asp.net core source codes by using the github's search method.

More details, you could refer to this source codes.

  • Related