15. Namespaces, Compilation Units, and Assemblies



You will learn about the following in this chapter:

  • How to define and use namespaces

  • How namespaces relate to compilation units and assemblies

  • The using directive

  • How to split compilation units up into smaller compilation units without changing the overall semantics

  • Important compiler commands that allow you to

    • Create DLL and EXE assemblies

    • Control the name of a new assembly

    • Include namespaces from other assemblies in your own programs

  • The intermediate language disassembling utility called Ildasm

Chapter 4, "A Guided Tour through C#: Part II," introduced you to the idea of using namespaces to organize classes in hierarchies of class containers and thereby keep the classes neatly ordered and easily accessible. So far, you have mainly been exposed to the namespace concept by using a few of the predefined namespaces (System and System.Collections) contained in the .NET Framework. This section looks at how you can define and use your own namespaces and how they relate to source files (also called compilation units) and assemblies.


C# Primer Plus
C Primer Plus (5th Edition)
ISBN: 0672326965
EAN: 2147483647
Year: 2000
Pages: 286
Authors: Stephen Prata

Similar book on Amazon

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net