Large sections of the framework are just wrappers on existing API functionality - particularily the threading/waitable timers type stuff.what does knowing APIs have to do with learning .NET?
If you have a class that does something when it is terminated then you should give it a Dispose method and make it implement IDisposable...e.g.I am not happy with things like "garbage collectors"...as I like to have 100% control of what is created and destroyed and when it happens.
This is how things like controls that have to dispose of windows resources are coded.VB Code:
Public Class Woof Implements IDisposable Public Sub Dispose() Implements IDisposable.Dispose '\\ Do your cleaning up here... End Sub End Class




Reply With Quote