Chapter 8. Working with Libraries

After completing this chapter, you’ll be able to:

  • Define and describe reusable code

  • Define and describe classes

  • Create an application that relies on a library

  • Add a test application to the library solution

  • Test a solution that uses multiple projects

A LIBRARY PROVIDES A MEANS of storing code in such a way that many applications can use it. Just as you borrow a book from a physical library to read and use its content, an application can borrow code from a code library to read and utilize it. Libraries offer many benefits to the developer—the most basic of which is the ability to write code once and use it many times. As you’ve seen, some of the examples in this book so far have reused code principles to accomplish seemingly ...

Get Start Here!™: Learn Microsoft® Visual C#® 2010 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.