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; } ///