4 ms·
At least according to the format and specification since VS 2005, .NET 2.0, the assembly format has been consistent and doesn't have any section for source code
by nazgulsenpai 3y ago
At least according to the format and specification since VS 2005, .NET 2.0, the assembly format has been consistent and doesn't have any section for source code.
It has always been trivial to load an assembly in something like dnSpy or another IL Disassembler and generate C# code and patch .NET assemblies. At least in the versions < 5.
https://learn.microsoft.com/en-us/dotnet/standard/assembly/file-format https://learn.microsoft.com/en-us/dotnet/standard/assembly/f...