From 73084301032bc37b20d7488d164f2bbd48401ae0 Mon Sep 17 00:00:00 2001 From: HowToDoThis Date: Thu, 12 Aug 2021 02:38:31 +0800 Subject: [PATCH] PR #587 --- src/ICSharpCode.SharpZipLib/Zip/ZipEntry.cs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/ICSharpCode.SharpZipLib/Zip/ZipEntry.cs b/src/ICSharpCode.SharpZipLib/Zip/ZipEntry.cs index 86c1bfff..8e900d8b 100644 --- a/src/ICSharpCode.SharpZipLib/Zip/ZipEntry.cs +++ b/src/ICSharpCode.SharpZipLib/Zip/ZipEntry.cs @@ -719,17 +719,13 @@ public long Crc /// /// Gets/Sets the compression method. /// - /// Throws exception when set if the method is not valid as per - /// /// /// The compression method for this entry /// public CompressionMethod CompressionMethod { get => method; - set => method = !IsCompressionMethodSupported(value) - ? throw new NotSupportedException("Compression method not supported") - : value; + set => method = value; } ///