public void Delete() { if (IsTempFile) { TemporaryFileRemover.Delete(Name); } else if (File.Exists(Name)) { File.Delete(Name); } }
public void Dispose() { TemporaryFileRemover.Delete(_file); GC.SuppressFinalize(this); }