myDispose method

Frees the resources associated with the object.

 Visual Basic syntax
 C# syntax