Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to edit C# code in a .net DLL [duplicate]

I have used many decompilers but have too little experience to understand where it is that I can edit the c# code of specific objects within the DLL. Is it possible to simply edit the C# code and save the changes? If so how could I go about doing this?

TL:DR How do I edit C# code inside a DLL that I do not have the source code for?

like image 911
Micheal Johnson Avatar asked Oct 22 '25 06:10

Micheal Johnson


1 Answers

You can edit & patch .NET DLL/EXE with https://github.com/0xd4d/dnSpy

Worked perfectly well for me.

like image 121
serhiyb Avatar answered Oct 23 '25 19:10

serhiyb