diff --git a/SharpCompress/Archive/GZip/GZipArchiveEntry.cs b/SharpCompress/Archive/GZip/GZipArchiveEntry.cs index 45b2532c..618276fa 100644 --- a/SharpCompress/Archive/GZip/GZipArchiveEntry.cs +++ b/SharpCompress/Archive/GZip/GZipArchiveEntry.cs @@ -7,7 +7,7 @@ namespace SharpCompress.Archive.GZip { public class GZipArchiveEntry : GZipEntry, IArchiveEntry { - private GZipArchive archive; + private readonly GZipArchive archive; internal GZipArchiveEntry(GZipArchive archive, GZipFilePart part) : base(part) diff --git a/SharpCompress/Archive/Rar/RarArchiveEntry.cs b/SharpCompress/Archive/Rar/RarArchiveEntry.cs index 3dc86a54..6d3b43dd 100644 --- a/SharpCompress/Archive/Rar/RarArchiveEntry.cs +++ b/SharpCompress/Archive/Rar/RarArchiveEntry.cs @@ -97,9 +97,5 @@ namespace SharpCompress.Archive.Rar throw new IncompleteArchiveException("ArchiveEntry is incomplete and cannot perform this operation."); } } - - internal override void Close() - { - } } } \ No newline at end of file diff --git a/SharpCompress/Common/Entry.cs b/SharpCompress/Common/Entry.cs index befd4a38..6127bc7e 100644 --- a/SharpCompress/Common/Entry.cs +++ b/SharpCompress/Common/Entry.cs @@ -66,6 +66,9 @@ namespace SharpCompress.Common internal abstract IEnumerable Parts { get; } - internal abstract void Close(); + internal virtual void Close() + { + + } } } \ No newline at end of file diff --git a/SharpCompress/Common/GZip/GZipEntry.cs b/SharpCompress/Common/GZip/GZipEntry.cs index a857d738..ddc0eec1 100644 --- a/SharpCompress/Common/GZip/GZipEntry.cs +++ b/SharpCompress/Common/GZip/GZipEntry.cs @@ -82,9 +82,5 @@ namespace SharpCompress.Common.GZip { yield return new GZipEntry(new GZipFilePart(stream)); } - - internal override void Close() - { - } } } \ No newline at end of file diff --git a/SharpCompress/Common/SevenZip/SevenZipEntry.cs b/SharpCompress/Common/SevenZip/SevenZipEntry.cs index 242a6a77..9403123f 100644 --- a/SharpCompress/Common/SevenZip/SevenZipEntry.cs +++ b/SharpCompress/Common/SevenZip/SevenZipEntry.cs @@ -76,9 +76,5 @@ namespace SharpCompress.Common.SevenZip { get { return FilePart.AsEnumerable(); } } - - internal override void Close() - { - } } } \ No newline at end of file diff --git a/SharpCompress/Common/Tar/TarEntry.cs b/SharpCompress/Common/Tar/TarEntry.cs index b44c5f88..2a7c048a 100644 --- a/SharpCompress/Common/Tar/TarEntry.cs +++ b/SharpCompress/Common/Tar/TarEntry.cs @@ -100,9 +100,5 @@ namespace SharpCompress.Common.Tar } } } - - internal override void Close() - { - } } } \ No newline at end of file diff --git a/SharpCompress/Common/Zip/ZipEntry.cs b/SharpCompress/Common/Zip/ZipEntry.cs index bb190581..5054639a 100644 --- a/SharpCompress/Common/Zip/ZipEntry.cs +++ b/SharpCompress/Common/Zip/ZipEntry.cs @@ -112,9 +112,5 @@ namespace SharpCompress.Common.Zip { get { return filePart.AsEnumerable(); } } - - internal override void Close() - { - } } } \ No newline at end of file diff --git a/SharpCompress/Reader/Rar/RarReaderEntry.cs b/SharpCompress/Reader/Rar/RarReaderEntry.cs index 810a1c6f..5e1205ca 100644 --- a/SharpCompress/Reader/Rar/RarReaderEntry.cs +++ b/SharpCompress/Reader/Rar/RarReaderEntry.cs @@ -45,9 +45,5 @@ namespace SharpCompress.Reader.Rar { get { return Part.FileHeader.UncompressedSize; } } - - internal override void Close() - { - } } } \ No newline at end of file