8.1. Assemblies

A namespace allows us to neatly package the types defined within our component, ensuring that others can safely include our component within their program without any existing code breaking because of unexpected name conflicts. This is a very important guarantee.

Under Visual Studio.NET, the unit of program deployment is the assembly. An assembly serves as a kind of component DNA. It is a self-contained, versionable, self-describing unit of a .NET application. It contains all the executable code we've written, of course. This code is stored in an intermediate language. We'll talk about that a bit later. In addition, it holds metadata about the types within our program, and the environment in which the program was built. This information ...

Get C# Primer: A Practical Approach now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.