Scalien.SafeDLLHandle.Dispose C# (CSharp) Method

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void
        protected override void Dispose(bool disposing)
        {
            base.Dispose(disposing);

            try
            {
                // Try to delete file from disk
                FileInfo file = new FileInfo(filePath);
                file.Delete();

                // Try to delete directory from disk
                Directory.Delete(Path.GetDirectoryName(filePath), true);
            }
            catch (Exception)
            {
            }
        }