Chapter 6 IDisposable example code
In the IDispoasable sample code on page 217 of Chapter 6, the sample has you set:
mPhones = Nothing
If you use the Person Class from chapter 5, you receive a syntax error because mPhones is not used in the class defined in this chapter. However, chapter 4 has a reference to mPhones defined on page 103. This is confusing since the Person Class is completely redefined on page 140 of chapter 5. One would think the most recent chapter 5 version of Person Class would be used in chapter 6.
|