Isn't this what the Delete() method does if you define it?
I think you're meant to define a Delete() method inside the type, and this method will automatically be called when you release an instance of the type. I'm not sure if you can cause it to be released otherwise.
I think you're meant to define a Delete() method inside the type, and this method will automatically be called when you release an instance of the type. I'm not sure if you can cause it to be released otherwise.