25.12.2015 Views

Professional

1l6xhbR

1l6xhbR

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Project/Solution<br />

Description<br />

Chapter 14<br />

GarbageCollectionDemo<br />

This project shows how to implement exception-safe<br />

disposal of resources by using the Dispose pattern.<br />

Chapter 15<br />

Drawing Using Properties<br />

AutomaticProperties<br />

This project extends the application in the Drawing project<br />

developed in Chapter 13 to encapsulate data in a class by<br />

using properties.<br />

This project shows how to create automatic properties for a<br />

class and use them to initialize instances of the class.<br />

Chapter 16<br />

Indexers<br />

This project uses two indexers: one to look up a person’s<br />

phone number when given a name and the other to look<br />

up a person’s name when given a phone number.<br />

Chapter 17<br />

BinaryTree<br />

BuildTree<br />

This solution shows you how to use generics to build a<br />

type-safe structure that can contain elements of any type.<br />

This project demonstrates how to use generics to implement<br />

a type-safe method that can take parameters of any<br />

type.<br />

Chapter 18<br />

Cards<br />

This project updates the code from Chapter 10 to show<br />

how to use collections to model hands of cards in a card<br />

game.<br />

Chapter 19<br />

BinaryTree<br />

IteratorBinaryTree<br />

This project shows you how to implement the generic<br />

IEnumerator interface to create an enumerator for the<br />

generic Tree class.<br />

This solution uses an iterator to generate an enumerator<br />

for the generic Tree class.<br />

Chapter 20<br />

Delegates<br />

This project shows how to decouple a method from the<br />

application logic that invokes it by using a delegate. The<br />

project is then extended to show how to use an event to<br />

alert an object to a significant occurrence, and how to<br />

catch an event and perform any processing required<br />

Chapter 21<br />

QueryBinaryTree<br />

This project shows how to use LINQ queries to retrieve data<br />

from a binary tree object.<br />

Introduction xxvii

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!