What is a module in .NET?

前端 未结 4 1943
北荒
北荒 2020-11-27 15:58

What exactly is a module? What is the difference between a module, a class and a function? How can I access a module in C#?

I am asking this because I want to calcul

4条回答
  •  Happy的楠姐
    2020-11-27 16:04

    As an addition to the other answers:

    The MSDN states that: "A module is a Microsoft intermediate language (MSIL) file that does not have an assembly manifest.".

    Modules can be "linked" together by generating an assembly manifest using the Assembly Linker (al.exe) utility. If i remember it correctly the CLR can load individual modules for an assembly, so that only the neccessary modules get loaded.

    EDIT: Found a better description of the Netmodules and why you would want them.

    There is another question here on SO that touches the checksum subject. The answers mentions using the GetILAsByteArray method for getting the IL.

提交回复
热议问题