protected override void Dispose(bool disposing) { if (disposing) { // Dispose managed objects. } // Dispose unmanaged objects. if (this.fciHandle != Pointer.Zero) { FCI.Destroy(this.fciHandle); this.erf.Dispose(); this.erf = null; this.cabStream = null; this.fileStream = null; this.fciHandle = Pointer.Zero; } }
/// <summary> /// Releases the handle by calling FDIDestroy(). /// </summary> /// <returns>True if the release succeeded.</returns> protected override bool ReleaseHandle() { return(FCI.Destroy(this.handle)); }