IDisposable

Interface containing a delete function. Often combined with IVerifiable.

interface IDisposable {}

Members

Functions

dispose
void dispose()

Function for deallocating memory. Should be called in destructor.

Examples

1 class A : IDisposable
2 {
3    ~this()
4    {
5        dispose();
6    }
7 
8    public void dispose()
9    {
10        // Delete Native Stuff
11    }
12 }

Meta