mirror of
https://github.com/adamhathcock/sharpcompress.git
synced 2026-09-23 07:25:11 +00:00
fix inheritance
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user