We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fa2b3f8 commit 7308430Copy full SHA for 7308430
src/ICSharpCode.SharpZipLib/Zip/ZipEntry.cs
@@ -719,17 +719,13 @@ public long Crc
719
/// <summary>
720
/// Gets/Sets the compression method.
721
/// </summary>
722
- /// <remarks>Throws exception when set if the method is not valid as per <see cref="IsCompressionMethodSupported()"/></remarks>
723
- /// <exception cref="NotSupportedException"/>
724
/// <returns>
725
/// The compression method for this entry
726
/// </returns>
727
public CompressionMethod CompressionMethod
728
{
729
get => method;
730
- set => method = !IsCompressionMethodSupported(value)
731
- ? throw new NotSupportedException("Compression method not supported")
732
- : value;
+ set => method = value;
733
}
734
735
0 commit comments