Decompiling assemblies
One of the best ways to learn how to code for .NET is to see how professionals do it.
For learning purposes, you can decompile any .NET assembly with a tool like ILSpy.
Good Practice: You could decompile someone else's assemblies for non-learning purposes but remember that you are viewing their intellectual property so please respect that.
- If you have not already installed the ILSpy .NET Decompiler extension for Visual Studio Code, then search for it and install it now.
- In Visual Studio Code, navigate to View | Command Palette… or press Cmd + Shift + P.
- Type
ilspy
and then select ILSpy: Decompile IL Assembly (pick file). - Navigate to the
Code/Chapter07/DotNetCodeEverywhere/bin /Release/netcoreapp3.0/win10-x64
folder. - Select the System.IO.FileSystem.dll assembly and click Select assembly.
- In the EXPLORER window, expand ILSPY DECOMPILED MEMBERS, select the assembly, and note the two edit...