diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2015-11-04 19:28:43 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2015-11-04 19:28:43 +0700 |
commit | f56fc16973d66bd9461f247e50738e55bd54de7e (patch) | |
tree | 8e84c9bd2cfc2d554b99c8045ec46de7313410fc /crypto/src/openpgp/WrappedGeneratorStream.cs | |
parent | Port updated revocation test from Java (diff) | |
download | BouncyCastle.NET-ed25519-f56fc16973d66bd9461f247e50738e55bd54de7e.tar.xz |
Replace Close with Dispose for PORTABLE
Diffstat (limited to 'crypto/src/openpgp/WrappedGeneratorStream.cs')
-rw-r--r-- | crypto/src/openpgp/WrappedGeneratorStream.cs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/crypto/src/openpgp/WrappedGeneratorStream.cs b/crypto/src/openpgp/WrappedGeneratorStream.cs index cdc9befb3..ffa199255 100644 --- a/crypto/src/openpgp/WrappedGeneratorStream.cs +++ b/crypto/src/openpgp/WrappedGeneratorStream.cs @@ -17,9 +17,21 @@ namespace Org.BouncyCastle.Bcpg.OpenPgp this.gen = gen; } +#if PORTABLE + protected override void Disposing(bool disposing) + { + if (disposing) + { + gen.Close(); + return; + } + base.Dispose(disposing); + } +#else public override void Close() { gen.Close(); } +#endif } } |