Пример #1
0
 protected void Finalize()
 {
     TemporaryFileInfo.Delete();
     if (File.Exists(TemporaryFileInfo.FullName))
     {
         logger.Log(POILogger.ERROR, "Can't delete temporary encryption file: " + TemporaryFileInfo);
     }
 }
Пример #2
0
        /**
         * Deletes the temporary file that backed this sheet on disk.
         * @return true if the file was deleted, false if it wasn't.
         */
        public bool Dispose()
        {
            bool ret;

            try
            {
                OutputStream.Close();
            }
            finally
            {
                TemporaryFileInfo.Delete();
                ret = File.Exists(TemporaryFileInfo.FullName);
            }
            return(ret);
        }