From 778a930266e5f946ddedcd55caf59f800cfad002 Mon Sep 17 00:00:00 2001 From: Adam Hathcock Date: Thu, 5 Feb 2026 09:16:45 +0000 Subject: [PATCH] fix inheritance --- src/SharpCompress/IO/SeekableSharpCompressStream.cs | 4 ++-- src/SharpCompress/IO/SharpCompressStream.cs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/SharpCompress/IO/SeekableSharpCompressStream.cs b/src/SharpCompress/IO/SeekableSharpCompressStream.cs index 5a66cbfb..2f94b641 100644 --- a/src/SharpCompress/IO/SeekableSharpCompressStream.cs +++ b/src/SharpCompress/IO/SeekableSharpCompressStream.cs @@ -14,13 +14,13 @@ internal sealed partial class SeekableSharpCompressStream : SharpCompressStream /// /// Gets or sets whether to leave the underlying stream open when disposed. /// - public new bool LeaveStreamOpen { get; set; } + public override bool LeaveStreamOpen { get; } /// /// Gets or sets whether to throw an exception when Dispose is called. /// Useful for testing to ensure streams are not disposed prematurely. /// - public new bool ThrowOnDispose { get; set; } + public override bool ThrowOnDispose { get; set; } public SeekableSharpCompressStream(Stream stream) : base(Null, true, false, null) diff --git a/src/SharpCompress/IO/SharpCompressStream.cs b/src/SharpCompress/IO/SharpCompressStream.cs index 8c16fa4b..bcc36318 100644 --- a/src/SharpCompress/IO/SharpCompressStream.cs +++ b/src/SharpCompress/IO/SharpCompressStream.cs @@ -32,13 +32,13 @@ internal partial class SharpCompressStream : Stream, IStreamStack /// /// Gets or sets whether to leave the underlying stream open when disposed. /// - public bool LeaveStreamOpen { get; } + public virtual bool LeaveStreamOpen { get; } /// /// Gets or sets whether to throw an exception when Dispose is called. /// Useful for testing to ensure streams are not disposed prematurely. /// - public bool ThrowOnDispose { get; set; } + public virtual bool ThrowOnDispose { get; set; } public SharpCompressStream(Stream stream) {