Alex Rivera | Logout

What is a module in .NET?

Asked 2009-03-14T10:20:23.397
63

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 calculate a checksum of the IL code of only some particular functions, at runtime (without using code signing).

Edit
Report

1 Answer

8

A file

That's what a module is.

module: A single file containing content that can be executed by the VES

(Where VES is a program which reads .NET assembly and converts it to machine code.) see http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-335.pdf Partition I page 16.

--

An assembly is coherent collection of files in the filesystem (modules). See http://msdn.microsoft.com/en-us/library/zst29sk2(vs.71).aspx

Obviously class definitions are defined inside the file (module) itelf.

answered 2011-07-15T14:06:40.663

Your Answer