June 2003
Intermediate to advanced
624 pages
12h 41m
English
Assemblies can contain several modules, and we're going to create a multi-module assembly next. An assembly includes a hash code for each module, which is a numeric representation of the module's code used for version verification. The Visual Studio IDE can't create multi-module assemblies for C#, although it can for C++, so we're going to use the command-line compiler, csc, in this example.
This example shows how to link several modules into the same assembly. In this case, we're going to define a string-handling class, ch13_02, in one module, and use it in another. In ch13_02.cs, we'll define the ch13_02 class in a namespace called MultiModule and give that class a property named Text that will hold a ...