Release Unmanaged Resources of the Workbook

Contents
[ ]

Workbook object now implements the System.IDisposable interface which has a single method Dispose(). You can either directly call the Workbook.Dispose() method or you can use the Using statement to call this method automatically.

// For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-.NET
// Create workbook object
Workbook wb1 = new Workbook();
// Call Dispose method
wb1.Dispose();
// Call Dispose method via Using statement
using (Workbook wb2 = new Workbook())
{
// Any other code goes here
}