473,385 Members | 1,973 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

What is a .NET "Module"

I'm learning about .NET assemblies and in the documentation there is mention
of "module" or "modules" within an assembly. For example, the Assembly class
has a GetModules method.

What is a module as it relates to an assembly? Is a module simply a class
(or any type) within the assembly?

Thanks in advance.

Jun 27 '08 #1
5 3096
Modules are the .NET equivalent of dll and exe executable files, and
this feature can be used to create applications that are written from
a mixture of languages.

You can mix languages in .NET to create an application, however, this
isn't done through inline code. Instead, you have to do it by linking
together seperate projects written under different languages within
the same solution.

For example, suppose you wanted to write a VB.NET applilcation that
reads Microsoft Word files. Word files are implemented through
Microsoft's Structured Storage API which is available only as a C++
library. To use this API, you would write a Visual C++.NET project
that opens MS Word files, does a directory on them, reads them, and
closes them. You would expose methods in this C++ project that your
VB.NET project can call to retrieve the data that was read from the
Word files. You would add and compile both projects into a single
solution which inturn will produce an assembly.

The VB.NET project and the C++.Net project are considered to be
modules of this finished assembly.

Jun 27 '08 #2
its a loadable unit in PE format, in general a .net dll. an assembly may have
a collection of modules via its manifest.

-- bruce (sqlwork.com)
"Verde" wrote:
I'm learning about .NET assemblies and in the documentation there is mention
of "module" or "modules" within an assembly. For example, the Assembly class
has a GetModules method.

What is a module as it relates to an assembly? Is a module simply a class
(or any type) within the assembly?

Thanks in advance.

Jun 27 '08 #3
regarding:

<< Modules are the .NET equivalent of dll and exe executable files...

I thought that an assembly is the .NET equivalent of a .dll and exe file.
Yet assemblies obviously contain or can contain many modules. So, what is
the relationship between a module and an assembly?

Thanks.

Jun 27 '08 #4
its common for there to be a one to one relationship between an assembly and
a module, but an assembly can have a manifest and be made up of mutiple
modules.

-- bruce (sqlwork.com)
"Verde" wrote:
regarding:

<< Modules are the .NET equivalent of dll and exe executable files...

I thought that an assembly is the .NET equivalent of a .dll and exe file.
Yet assemblies obviously contain or can contain many modules. So, what is
the relationship between a module and an assembly?

Thanks.

Jun 27 '08 #5
Thanks Bruce for the additional clarification.

Jun 27 '08 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Steve | last post by:
I get this message when I tried to make a .MDE of my database. "Compile error in hidden module: Form_frmPurchaseReq" I have been using this database for several months and just thought I would...
5
by: Bob | last post by:
Are they different names for the same concept ?
5
by: BH | last post by:
Hi what would be the C# equivalent of a VB.NET file that looks like this: Module Utilities Public Sub UtilitySubOne ( ByVal arg As String) // blah blah End Sub
5
by: Studio P.M. | last post by:
Having built successfully my first HTTP Module prototype (as for Q307996 - HOW TO: Create an ASP.NET HTTP Module ...) without really understanding what I've done, now I kindly ask this community...
1
by: Xiao Jianfeng | last post by:
Hello, In pymol I can use "from chempy import Atom" but "import chempy.Atom" doesn't work. It says,"ImportError: No module named Atom". What is going wrong ? Thanks
3
by: David T. Ashley | last post by:
Hi, Red Hat Enterprise Linux 4.X. I'm writing command-line PHP scripts for the first time. I get the messages below. What do they mean? Are these operating system library modules, or...
0
by: Shehryar | last post by:
AOA, I urgently want to know the major difference between "Module" and a "Class Module". Plz, reply me as early as possible. Thanx!
3
by: Mac Campbell | last post by:
For some unknown reason my mdb seemed to drop a module I had named "Utilities". I tried to copy the module back in from a backup copy and got the error message "<<MyProject>> is currently unable to...
2
by: Dave-o | last post by:
I'm learning PHP and in the process of choosing a good web hosting site. One that I'm interested in has PHP 5 as a module. Others say simply that they offer PHP 5. What does the phrase "as a...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.