Search code examples
c#.netmoduleclril

On what basis a managed module is created in .net framework?


I have been reading clr via c# book and it says

A managed module is a standard 32-bit Microsoft Windows portable executable (PE32) file or a standard 64-bit Windows portable executable (PE32+) file that requires the CLR to execute.

And other question in stackoverflow What is a module in .NET? says that

A module is a logical collection of code within an Assembly

But my question is how is this logically collected? On what basis?

Is a managed module created for single .cs file or a user defined type or for a particular namespace?


Solution

  • http://blogs.msdn.com/b/junfeng/archive/2005/02/12/371683.aspx

    The above link answers my question.

    So as i understand a multiple managed modules are created in an assembly when multiple languages are used in a single assembly.

    This being only one scenario. The other scenarios on what basis a managed module is created is explained in the above link.