O'Reilly logo

C# Primer Plus by Klaus Michelsen

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Summary

This chapter looked at compilation units, namespaces, and assemblies and discussed different fundamental ways to configure these important C# and .NET elements.

The following are the important points mentioned in this chapter.

Namespaces are used for two main purposes:

  • To organize our classes and other types into logical hierarchies when we write our own programs

  • As a convenient way to access classes and other types in other components

When a class is inserted into a namespace, its name becomes a combination of the namespace name and the class's short name. This fact prevents name clashes.

A namespace is a logical entity that transcends physical source files and assemblies. A namespace can span over several compilation units and several ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required