Server Reference Guide : 9. .NET Interface : Differences between .NET and Java Interfaces : IDisposable Interface
 
Share this page                  
IDisposable Interface
The .NET classes implement the IDisposable interface, which provides a Dispose method to release unmanaged resources owned by the object instance. This is the standard pattern for releasing non-memory resources in .NET. The “release” method provides the equivalent functionality in the Java classes. The requirement to call Dispose when finished using an object instance is similar to the requirement to call release in the Java classes.