From 92f85dc4a4b4b0127c791ea6d8732bd2de53289e Mon Sep 17 00:00:00 2001 From: Oren Novotny Date: Tue, 26 Aug 2014 22:05:11 -0400 Subject: Initial re-migration from original code --- crypto/src/util/io/BaseOutputStream.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'crypto/src/util/io/BaseOutputStream.cs') diff --git a/crypto/src/util/io/BaseOutputStream.cs b/crypto/src/util/io/BaseOutputStream.cs index 6e6c6d346..56ce847e0 100644 --- a/crypto/src/util/io/BaseOutputStream.cs +++ b/crypto/src/util/io/BaseOutputStream.cs @@ -11,7 +11,14 @@ namespace Org.BouncyCastle.Utilities.IO public sealed override bool CanRead { get { return false; } } public sealed override bool CanSeek { get { return false; } } public sealed override bool CanWrite { get { return !closed; } } - public override void Close() { closed = true; } + protected override void Dispose(bool disposing) + { + if (disposing) + { + closed = true; + } + base.Dispose(disposing); + } public override void Flush() {} public sealed override long Length { get { throw new NotSupportedException(); } } public sealed override long Position -- cgit 1.5.1