wrong code in book
On page 249 he says to put in the code
Public Class Person
Then it says
This interface defines two methodsâDispose and Finalizeâthat need to be implemented in the class.
Visual Studio automatically inserts both of these methods into your code:
But it didn't
I had to put in the methods myself, with his modifications
Private Overloads Sub Dispose(ByVal disposing As Boolean)
If Not Me.disposed Then
If disposing Then
â TODO: put code to dispose managed resources
mPhones = Nothing
â TODO: put code to free unmanaged resources here
Me.disposed = True
But mphones isn't acceptable because its implemented in the employee class.
The problem is that the rest of the chapter builds on this. How do I fix this so the rest of the chapter and perhaps subsequent chapters are useful to me.