In daily development, we need to reference an assembly or third-party library encapsulated by others, and we press F12 to go to the definition, and we can only see the method name, method parameters, return value type, etc., but not the specific implementation code.
If we want to see the specific implementation logic code, we need to use .net decompilation tools: Reflector, ILSpy, dnSpy, etc., but it is too cumbersome, in fact, Visual Studio(vs) already has its own decompilation function.
I'm using vs2019 with the following configuration:
Tools → Options → Text Editor → C# > Advanced → enable navigation to decompiled sources
After enabling it, we press F12 to go to the definition, and we can directly view the decompiled source code.
|