mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
refactor(archival): ♻ improve IDisposable implementation per S3881
https://rules.sonarsource.com/csharp/RSPEC-3881
This commit is contained in:
parent
d57a2a45c9
commit
99b9e767f2
1 changed files with 6 additions and 0 deletions
|
|
@ -52,6 +52,12 @@ public void Commit()
|
|||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
Dispose(true);
|
||||
GC.SuppressFinalize(this);
|
||||
}
|
||||
|
||||
protected virtual void Dispose(bool disposing)
|
||||
{
|
||||
foreach (var file in _filePaths)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue