Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is a module in .NET?

Tags:

c#

.net

module

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).

like image 662
Pushkar Avatar asked Mar 14 '09 10:03

Pushkar


People also ask

What is a module in C#?

A module is a portable executable file, such as type. dll or application.exe, consisting of one or more classes and interfaces. There may be multiple namespaces contained in a single module, and a namespace may span multiple modules. One or more modules deployed as a unit compose an assembly.

What is the module?

A module is a distinct assembly of components that can be easily added, removed or replaced in a larger system. Generally, a module is not functional on its own. In computer hardware, a module is a component that is designed for easy replacement.

WHAT IS modules in asp net?

Modules are called before and after the handler executes. Modules enable developers to intercept, participate in, or modify each individual request. Modules implement the IHttpModule interface, which is located in the System. Web namespace.

What is a module in Visual Studio?

Edit Article. Modules are containers to define custom functions, procedures or variables to group code in Visual Basic. Module containing an entry point subroutine (main) is an entry module. It is always at least one module defined in the Visual Basic macro.


1 Answers

A module is a logical collection of code within an Assembly. You can have multiple modules inside an Assembly, and each module can be written in different .NET languages (VS, as far as I'm aware, doesn't support creation of multi-module assemblies).

Assemblies contain modules. Modules contain classes. Classes contain functions.

Yes you can access assemblies, modules, classes, functions, properties, fields etc all via reflection at runtime.

like image 180
OJ. Avatar answered Oct 05 '22 04:10

OJ.