The above sample is incorrect, it actually shows the Dispose method rather than the Finalize.
The following is a better example:
[Visual Basic]
Public Class TypeB
Inherits TypeA
Protected Overrides Sub Finalize()
Try
Dispose(False)
Finally
MyBase.Finalize()
End Try
End Sub
End Class
No sample is needed for C#, because, as mentioned above, the C# compiler automatically calls the base class's finalizer, therefore you do not need to do anything.