What is the relationship between an assembly and a file?

N

nfr

I understand an assembly is nothing more than a collection of types in a
versioned binary (EXE or DLL) in one or more physical files. Is there any
kind of relationship between the assembly name and the file name it is
housed in. For example, would the assembly name for a .NET file called
"MyRemoteObjects.dll" be "MyRemoteObjects"?

If this is the case, how are multifile assemblies named? Do they take the
name of the file containing the manifest.
 
M

Marc Scheuner [MVP ADSI]

I understand an assembly is nothing more than a collection of types in a
versioned binary (EXE or DLL) in one or more physical files. Is there any
kind of relationship between the assembly name and the file name it is
housed in.

What do you mean by "assembly name" ?? The name of a class? The name
of the namespace??

Every class exists within a namespace, and those are totally
independent of file names. You can have namespaces stretched a great
many files. The fully-qualified class name is <namespace>.<class
name>, e.g. "System.Drawing.Color" - is that what you mean?

If so - no, there's no direct or indirect correlation between the
fully-qualified class or namespace name, and the file(s) it's
contained in.

Marc

================================================================
Marc Scheuner May The Source Be With You!
Bern, Switzerland m.scheuner(at)inova.ch
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top