summary refs log tree commit diff
path: root/crypto/src/openpgp/WrappedGeneratorStream.cs
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src/openpgp/WrappedGeneratorStream.cs')
-rw-r--r--crypto/src/openpgp/WrappedGeneratorStream.cs35
1 files changed, 16 insertions, 19 deletions
diff --git a/crypto/src/openpgp/WrappedGeneratorStream.cs b/crypto/src/openpgp/WrappedGeneratorStream.cs
index baad0d429..6fc7329af 100644
--- a/crypto/src/openpgp/WrappedGeneratorStream.cs
+++ b/crypto/src/openpgp/WrappedGeneratorStream.cs
@@ -4,25 +4,22 @@ using Org.BouncyCastle.Asn1.Utilities;
 
 namespace Org.BouncyCastle.Bcpg.OpenPgp
 {
-    public class WrappedGeneratorStream
-        : FilterStream
-    {
-        private readonly IStreamGenerator gen;
+	public class WrappedGeneratorStream
+		: FilterStream
+	{
+		private readonly IStreamGenerator gen;
 
-        public WrappedGeneratorStream(
-            IStreamGenerator gen,
-            Stream str)
-            : base(str)
-        {
-            this.gen = gen;
-        }
+		public WrappedGeneratorStream(
+			IStreamGenerator	gen,
+			Stream				str)
+			: base(str)
+		{
+			this.gen = gen;
+		}
 
-        protected override void Dispose(bool disposing)
-        {
-            if (disposing)
-            {
-                gen.Close();
-            }
-        }
-    }
+		public override void Close()
+		{
+			gen.Close();
+		}
+	}
 }