After decompiling .NET in classes, I got an incomprehensible <module> , what is it? The compiler curses brackets.

img

  • 3
    Decompilation is not officially supported by the .NET framework. Make claims to the decompiler developer (if it is commercial). --- I would suggest that this module is written in C ++ / CLI, it cannot be correctly decompiled in C #. - VladD

1 answer 1

If it is .NET, then this does not mean that it is C #.

There are those in the .NET language stack that allow you to create variables outside of all classes (VB.NET), or to create functions / procedures outside of classes (VB.NET, IronPython), or fully functional (F #). Such variables / functions / procedures will be in the Module.

C #, as far as I know, does not use the Module because of its OO. The exception is when the code is obfuscated - the obfuscator can actively use this part of the program to confuse the code even more.