Matt Gerrans
Posts: 1153
Nickname: matt
Registered: Feb, 2002
|
|
Re: loading a dll
|
Posted: Nov 21, 2003 6:23 PM
|
|
.NET assemblies are more like Java ar files; they can contain many classes, namespaces, resources and metadata. The .NET namespace is like the Java package conceptually, but has differences in practice. For example, the jar file is a zip file that has a heirarchy reflecting the package organization, whereas assemblies don't have that directory hierarchy and are are not zip files. You can also spread namespaces across assemblies, but I'm not sure if you can spread packages across jar files (I haven't tried that...).
On the other hand, an assembly with a single class in it is more like a class file than a jar file.
Anyway, they are different in many ways. If I really wanted to research the differences, I'd read up on class files (in Bill Venners's Inside the Java Virtual Machine book and/or at http://java.sun.com) and then read up on assemblies in .NET (in books like Inside Microsoft .NET IL Assembler, or at http://msdn.microsoft.com). There are many more books and web sites that will go into great detail on all of this, as well.
|
|