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

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

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.
Source: https://ru.stackoverflow.com/questions/248412/
All Articles