Ever wondered how Microsoft is using some .NET features in it's own codebase? One way to find this out is through the .NET Source Browser. This site allows you to browse through all the .NET source files and find out how specific features are implemented or specific classes used.
For example, I’m working on a piece of code where I wanted to use the Channels API but I was wondering how it was implemented. And what better place to learn than from the creators themselves?
So I opened up the .NET Source Browser and searched for Channel.CreateBounded
:
This returned multiple results:
When you click on a specific result you arrive at the specific source file and can further check the implementation:
Another option is to go through the official .NET documentation and click on the source links there:
This brings you to the code source in GitHub:
Have fun browsing through the codebase!