fix inheritance

This commit is contained in:
Adam Hathcock
2026-02-05 09:16:45 +00:00
parent db544211f5
commit 778a930266
2 changed files with 4 additions and 4 deletions

View File

@@ -14,13 +14,13 @@ internal sealed partial class SeekableSharpCompressStream : SharpCompressStream
/// <summary>
/// Gets or sets whether to leave the underlying stream open when disposed.
/// </summary>
public new bool LeaveStreamOpen { get; set; }
public override bool LeaveStreamOpen { get; }
/// <summary>
/// Gets or sets whether to throw an exception when Dispose is called.
/// Useful for testing to ensure streams are not disposed prematurely.
/// </summary>
public new bool ThrowOnDispose { get; set; }
public override bool ThrowOnDispose { get; set; }
public SeekableSharpCompressStream(Stream stream)
: base(Null, true, false, null)

View File

@@ -32,13 +32,13 @@ internal partial class SharpCompressStream : Stream, IStreamStack
/// <summary>
/// Gets or sets whether to leave the underlying stream open when disposed.
/// </summary>
public bool LeaveStreamOpen { get; }
public virtual bool LeaveStreamOpen { get; }
/// <summary>
/// Gets or sets whether to throw an exception when Dispose is called.
/// Useful for testing to ensure streams are not disposed prematurely.
/// </summary>
public bool ThrowOnDispose { get; set; }
public virtual bool ThrowOnDispose { get; set; }
public SharpCompressStream(Stream stream)
{