Decompile .NET DLL using ILSpy. Undo C# syntactic sugar - July 2022 - 52df8097

nmariusp
nmariusp
14.4 هزار بار بازدید - 2 سال پیش - A C# compiler converts C#
A C# compiler converts C# source code to binary DLLs.
Using ILSpy, you can convert .NET DLLs back to C#. Any version of C#. Or to CIL.
ILSpy can convert an entire DLL into a Visual Studio C# project (csproj file plus C# source code files). This can be compiled using Visual Studio back to a DLL.
If you do not know what a C# syntactic sugar does under the hood. Write C# source code containing that syntactic sugar (e.g. async/await, ? for nullable types, extension methods, closures/anonymous functions etc.), build to DLL. Decompile that DLL to an old version of C# (e.g. C# 1.0) that did not have that C# syntactic sugar and see what the generated source code looks like.
2 سال پیش در تاریخ 1401/04/25 منتشر شده است.
14,402 بـار بازدید شده
... بیشتر