14.4. Building and Consuming a Single-File Assembly

To begin exploring the world of .NET assemblies, you'll first create a single-file *.dll assembly (named CarLibrary) that contains a small set of public types. To build a code library using Visual Studio 2010, select the Class Library project workspace via the File New Project... menu option (see Figure 14-4).

Figure 14.4. Creating a C# code library

The design of your automobile library begins with an abstract base class named Car that defines various state data via automatic property syntax. ...

Get Pro C# 2010 and the .NET 4 Platform, Fifth Edition 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.