Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
HowToDoThis committed Aug 11, 2021
1 parent fa2b3f8 commit 7308430
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/ICSharpCode.SharpZipLib/Zip/ZipEntry.cs
Expand Up @@ -719,17 +719,13 @@ public long Crc
/// <summary>
/// Gets/Sets the compression method.
/// </summary>
/// <remarks>Throws exception when set if the method is not valid as per <see cref="IsCompressionMethodSupported()"/></remarks>
/// <exception cref="NotSupportedException"/>
/// <returns>
/// The compression method for this entry
/// </returns>
public CompressionMethod CompressionMethod
{
get => method;
set => method = !IsCompressionMethodSupported(value)
? throw new NotSupportedException("Compression method not supported")
: value;
set => method = value;
}

/// <summary>
Expand Down

0 comments on commit 7308430

Please sign in to comment.